fixed ncurses output attributes

This commit is contained in:
2024-07-07 20:08:13 -04:00
parent 3d7484351f
commit d85f375fbe
5 changed files with 37 additions and 2 deletions

View File

@ -3,6 +3,18 @@
cursor::cursor() {
initscr();
if (has_colors()) {
start_color();
init_pair(COLOR_RED, COLOR_RED, COLOR_BLACK);
init_pair(COLOR_GREEN, COLOR_GREEN, COLOR_BLACK);
init_pair(COLOR_YELLOW, COLOR_YELLOW, COLOR_BLACK);
init_pair(COLOR_BLUE, COLOR_BLUE, COLOR_BLACK);
init_pair(COLOR_MAGENTA, COLOR_MAGENTA, COLOR_BLACK);
init_pair(COLOR_CYAN, COLOR_CYAN, COLOR_BLACK);
init_pair(COLOR_WHITE, COLOR_WHITE, COLOR_BLACK);
init_pair(COLOR_BLACK_ON_WHITE, COLOR_BLACK, COLOR_WHITE);
}
}
cursor::~cursor() {