nonl();
cbreak();
noecho();
+ curs_set (0);
+
/* Si se soporta color, los inicializo */
if (has_colors()) {
start_color();
init_pair(COLOR_PAIR (1), COLOR_RED, COLOR_RED);
}
- wBTree *w = new wBTree ();
- wNodeHeader *w1 = new wNodeHeader (10, 10);
-
- w->SetTree (&tree);
- int n = 0;
- do {
- w->ShowNode (n);
- w->Show ();
-
- w1->SetHeader (n, w->GetHeader ());
- w1->Show ();
-
- scanf ("%d", &n);
- if (n == -1) break;
+ /* Creo la ventana principal */
+ Window *screen = new Window ("TreeMulator", 0, 0, 0, 0, true);
+ wBTree *wb = new wBTree (screen);
- } while (true);
+ screen->Show ();
+ wb->Show ();
- delete w;
- delete w1;
+ screen->GetChar ();
+ curs_set (1);
endwin();
return 0;
}