This commit is contained in:
vrd
2022-12-31 18:54:34 +02:00
parent 3f402e058c
commit 1c91d7b775
5 changed files with 43 additions and 29 deletions
+8 -2
View File
@@ -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)