libgnt/libgnt

Add a test/example for GntTree

22 months ago, Gary Kramlich
b7174f76d7ee
Add a test/example for GntTree

Testing Done:
Ran the test and made sure the tree worked as expected.

Reviewed at https://reviews.imfreedom.org/r/1600/
#include <ncurses.h>
int main()
{
int ch;
initscr();
noecho();
cbreak();
refresh();
WINDOW *win = newpad(20, 30);
box(win, 0, 0);
prefresh(win, 0, 0, 0, 0, 19, 29);
doupdate();
while ((ch = getch())) {
printw("%d ", ch);
refresh();
}
endwin();
return 0;
}