diff options
author | Paul Oliver <contact@pauloliver.dev> | 2024-02-29 01:50:44 +0100 |
---|---|---|
committer | Paul Oliver <contact@pauloliver.dev> | 2024-02-29 01:50:44 +0100 |
commit | 2d036d562f9ebdd4f1f6bfc34d7fac86d5d414dc (patch) | |
tree | a46cefd9bd299058849d7bfe20685f5ca9b48f44 /tsalis | |
parent | 36766945871ce1f9ea2166fb3899e130978030f5 (diff) |
TSalis defines terminal colors.
Diffstat (limited to 'tsalis')
-rw-r--r-- | tsalis/src/printer.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tsalis/src/printer.c b/tsalis/src/printer.c index 212d3de..9d82fc8 100644 --- a/tsalis/src/printer.c +++ b/tsalis/src/printer.c @@ -99,6 +99,18 @@ tsp_init(void) curs_set(0); keypad(stdscr, TRUE); start_color(); + + if (can_change_color()) { + init_color(COLOR_BLACK, 0, 0, 0); + init_color(COLOR_RED, 700, 0, 0); + init_color(COLOR_GREEN, 0, 700, 0); + init_color(COLOR_YELLOW, 700, 700, 0); + init_color(COLOR_BLUE, 0, 0, 700); + init_color(COLOR_MAGENTA, 700, 0, 700); + init_color(COLOR_CYAN, 0, 700, 700); + init_color(COLOR_WHITE, 700, 700, 700); + } + init_pair(PAIR_NORMAL, COLOR_WHITE, COLOR_BLACK); init_pair(PAIR_HEADER, COLOR_CYAN, COLOR_BLACK); init_pair(PAIR_SELECTED_PROC, COLOR_YELLOW, COLOR_BLACK); |