2018-02-06 10:50:19 +00:00
|
|
|
---
|
|
|
|
layout: page
|
|
|
|
title: Colour Codes
|
|
|
|
---
|
2020-06-13 14:07:19 +02:00
|
|
|
ENiGMA½ supports Renegade-style pipe colour codes for formatting strings. You'll see them used in [`config.hjson`](config-hjson.md),
|
|
|
|
[`prompt.hjson`](prompt-hjson.md), [`menu.hjson`](menu-hjson.md), and can also be used in places like the oneliner, rumour mod,
|
2018-02-06 10:50:19 +00:00
|
|
|
full screen editor etc.
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
When ENiGMA½ encounters colour codes in strings, they'll be processed in order and combined where possible.
|
|
|
|
|
|
|
|
For example:
|
|
|
|
|
|
|
|
`|15|17Example` - white text on a blue background
|
|
|
|
|
|
|
|
`|10|23Example` - light green text on a light grey background
|
|
|
|
|
|
|
|
|
|
|
|
## Colour Code Reference
|
|
|
|
|
2020-06-13 14:07:19 +02:00
|
|
|
:warning: Colour codes |24 to |31 are considered "blinking" or "iCE" colour codes. On terminals that support them they'll
|
2018-02-06 10:50:19 +00:00
|
|
|
be shown as the correct colours - for terminals that don't, or are that are set to "blinking" mode - they'll blink!
|
|
|
|
|
|
|
|

|