up down select and focus

This commit is contained in:
vrd
2023-01-02 17:31:29 +02:00
parent 1c91d7b775
commit 6cbe64f927
7 changed files with 154 additions and 50 deletions
+8 -6
View File
@@ -13,12 +13,14 @@ int main()
initscr(); /* Start curses mode */
noecho();
cbreak(); /* get input instantly */
keypad(stdscr, true);
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);
init_pair(COLOR_SELECTED, COLOR_YELLOW, -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)
@@ -46,13 +48,13 @@ int main()
test2.addPerson("Rumiana", false, 2, 4);
/* test2.addRelation(5, Brother, 6); */
test1.draw();
test2.draw();
test1.display();
test2.display();
/* (test1 + test2).draw(4); */
/* (test1 + test2).display(); */
test1 += test2;
test1.draw(4);
test1.draw();
test1.display();
test1.display();
/* test1.saveTree(); */
@@ -82,7 +84,7 @@ int main()
/* firstTree.print(); */
firstTree.draw();
firstTree.display();
/* firstTree.saveTree(); */
/* firstTree.printRel(3); */