mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-31 23:06:21 +00:00
Transparent terminal support
This commit is contained in:
13
windows.c
13
windows.c
@@ -65,16 +65,17 @@ void gui_init(void)
|
|||||||
keypad(stdscr, TRUE);
|
keypad(stdscr, TRUE);
|
||||||
|
|
||||||
if (has_colors()) {
|
if (has_colors()) {
|
||||||
|
use_default_colors();
|
||||||
start_color();
|
start_color();
|
||||||
|
|
||||||
init_pair(1, COLOR_WHITE, COLOR_BLACK);
|
init_pair(1, COLOR_WHITE, -1);
|
||||||
init_pair(2, COLOR_GREEN, COLOR_BLACK);
|
init_pair(2, COLOR_GREEN, -1);
|
||||||
init_pair(3, COLOR_WHITE, COLOR_BLUE);
|
init_pair(3, COLOR_WHITE, COLOR_BLUE);
|
||||||
init_pair(4, COLOR_CYAN, COLOR_BLUE);
|
init_pair(4, COLOR_CYAN, COLOR_BLUE);
|
||||||
init_pair(5, COLOR_CYAN, COLOR_BLACK);
|
init_pair(5, COLOR_CYAN, -1);
|
||||||
init_pair(6, COLOR_RED, COLOR_BLACK);
|
init_pair(6, COLOR_RED, -1);
|
||||||
init_pair(7, COLOR_MAGENTA, COLOR_BLACK);
|
init_pair(7, COLOR_MAGENTA, -1);
|
||||||
init_pair(8, COLOR_YELLOW, COLOR_BLACK);
|
init_pair(8, COLOR_YELLOW, -1);
|
||||||
}
|
}
|
||||||
|
|
||||||
refresh();
|
refresh();
|
||||||
|
|||||||
Reference in New Issue
Block a user