ncurses initial
This commit is contained in:
@@ -8,6 +8,7 @@ using std::cout;
|
||||
|
||||
int main()
|
||||
{
|
||||
setlocale(LC_ALL, "");
|
||||
initscr(); /* Start curses mode */
|
||||
|
||||
/*Tree test1("Dechkovi"); //addTree Dechkovi addTree Karamanovi load 0 load 1 (to work with these example trees)
|
||||
@@ -40,7 +41,7 @@ int main()
|
||||
|
||||
Tree firstTree("firstTree");
|
||||
|
||||
firstTree.addPerson("Адам,", true, Nobody, Nobody, {0, 1, 6});
|
||||
firstTree.addPerson("Адам", true, Nobody, Nobody, {0, 1, 6});
|
||||
firstTree.addPerson("Ева", false, Nobody, Nobody, {0, 1, 6});
|
||||
firstTree.addRelation(0, Husband, 1);
|
||||
|
||||
@@ -59,8 +60,6 @@ int main()
|
||||
|
||||
/* ====================================================== */
|
||||
|
||||
refresh(); /* Print it on to the real screen */
|
||||
|
||||
Array<Tree> trees;
|
||||
|
||||
bool quit = false;
|
||||
@@ -106,7 +105,11 @@ int main()
|
||||
|
||||
do
|
||||
{
|
||||
std::cout << "Enter a command\n";
|
||||
clear();
|
||||
printw("Enter a command\n");
|
||||
refresh();
|
||||
// getmaxyx(stdscr,row,col); /* get the number of rows and columns */
|
||||
|
||||
std::cin >> input;
|
||||
for (i = 0; i < numCom; ++i)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user