comment about colors

This commit is contained in:
2026-01-13 12:39:17 +05:00
parent 58276638a7
commit 6d0190c9c0
2 changed files with 7 additions and 3 deletions

View File

@@ -66,7 +66,10 @@ extern "C" {
#pragma region types #pragma region types
/* first 16 colors from xterm256 supported by any terminal emulator */ // 16 ANSI colors supported by any terminal emulator.
// It's better to use xterm256 colors istead,
// because ANSI colors look different in each terminal.
// https://www.ditig.com/256-colors-cheat-sheet
enum { enum {
TimColor16_Black = 0x00, TimColor16_Black = 0x00,
TimColor16_DarkRed = 0x01, TimColor16_DarkRed = 0x01,

View File

@@ -65,8 +65,9 @@ The layout automatically adopts to terminal window resize events.
## colors ## colors
Colors are stored as 8-bit values. Colors are stored as 8-bit values.
Most terminals support 16 basic colors. You can see them in TimColor16 enum. Most terminals support 16 ANSI colors. You can see them in TimColor16 enum.
There is also support for xterm-256 colors. It's better to use xterm256 colors istead, because ANSI colors look different in each terminal.
https://www.ditig.com/256-colors-cheat-sheet
![xterm-256 color chart](./256colors.jpg) ![xterm-256 color chart](./256colors.jpg)
## events ## events