color
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
|
||||
#include <ncursesw/ncurses.h>
|
||||
#include <iostream>
|
||||
#include "tree.h"
|
||||
@@ -8,11 +7,18 @@ using std::cin;
|
||||
using std::cout;
|
||||
int main()
|
||||
{
|
||||
setlocale(LC_ALL, "");
|
||||
setlocale(LC_ALL, ""); /* TODO: set to utf */
|
||||
|
||||
/* Init ncurses */
|
||||
initscr(); /* Start curses mode */
|
||||
noecho();
|
||||
cbreak(); /* get input instantly */
|
||||
start_color();
|
||||
use_default_colors();
|
||||
/* init_pair(5, COLOR_BLACK, COLOR_BLACK); */
|
||||
/* bkgd(COLOR_PAIR(5)); */
|
||||
init_pair(COLOR_MALE, COLOR_BLUE, -1); /* -1 means use default */
|
||||
init_pair(COLOR_FEMALE, COLOR_RED, -1);
|
||||
wnoutrefresh(stdscr); /* if not present the first real refresh is missed */
|
||||
|
||||
Tree test1("Dechkovi"); //addTree Dechkovi addTree Karamanovi load 0 load 1 (to work with these example trees)
|
||||
|
||||
Reference in New Issue
Block a user