bash:colors:8-bit_colors
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
bash:colors:8-bit_colors [2021/01/09 12:53] – peter | bash:colors:8-bit_colors [2021/01/09 13:33] (current) – peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== BASH - Colors - 8-bit Colors ====== | ====== BASH - Colors - 8-bit Colors ====== | ||
+ | 256 colors. | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Format ===== | ||
+ | |||
+ | <code bash> | ||
+ | ESC[ 38; | ||
+ | ESC[ 48; | ||
+ | </ | ||
+ | |||
+ | where n is: | ||
+ | |||
+ | <code bash> | ||
+ | 0- 7: standard colors (as in ESC [ 30–37 m) | ||
+ | 8- 15: high intensity colors (as in ESC [ 90–97 m) | ||
+ | | ||
+ | 232-255: | ||
+ | </ | ||
+ | |||
+ | where: | ||
+ | |||
+ | * **0** is BLACK. | ||
+ | * **1** is RED. | ||
+ | * **2** is GREEN. | ||
+ | * **3** is YELLOW. | ||
+ | * **4** is BLUE. | ||
+ | * **5** is MAGENTA. | ||
+ | * **6** is CYAN. | ||
+ | * **7** is WHITE. | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== RED Example ===== | ||
+ | |||
+ | <code bash> | ||
+ | echo -e " | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== BRIGHT RED Example ===== | ||
+ | |||
+ | <code bash> | ||
+ | echo -e " | ||
+ | </ | ||
+ | |||
+ | ---- | ||
===== ANSI Rainbow ===== | ===== ANSI Rainbow ===== |
bash/colors/8-bit_colors.1610196837.txt.gz · Last modified: 2021/01/09 12:53 by peter