int main() { WINDOW *one, *sub, *two;
PANEL *pone, *ptwo;
initscr(); noecho();
30, 1, 1); two = newwin(10, 20, 3, 6);
pone = new_panel(one); ptwo = new_panel(two);
box(one, 0, 0);
box(two, 0, 0); top_panel(ptwo);
update_panels(); doupdate(); getch();
sub = subwin(one, 8, 28, 2, 2); wprintw(sub, "this is a long string %60s", "and this to end the log string.");
touchwin(one); update_panels(); doupdate(); getch();