/* Demonstrate using curses to print to screen (pg 266) */ #include main() { initscr(); /* turn on curses */ clear(); /* clear screen */ move(10,20); /* row 10, column 20 */ addstr("Hello world"); /* add a string */ move(LINES-1,0); /* move to LL */ refresh(); /* update the screen */ getch(); /* wait for user input */ endwin(); /* turn off curses */ }