|
|
#include <ocurses.h>NOTESint clrtoeol() int clrtobot()
EXAMPLE
#include <ocurses.h>main() { initscr(); addstr("Press <Return> to delete from here to the end of the line and on."); addstr("\nDelete this too.\nAnd this."); move(0,30); refresh(); getch(); clrtobot(); refresh(); endwin(); }
Here's the output generated by running this program:
Press <Return> to delete from here[]to the end of the line and on. Delete this too. And this.Notice the two calls to refresh: one to send the full screen of text to a terminal, the other to clear from the position indicated to the bottom of a screen. Here's what the screen looks like when you press RETURN:
Press <Return> to delete from hereSee the show and two programs for other uses of clrtoeol.$[]