DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Simple input and output

clrtoeol and clrtobot

SYNOPSIS

   #include <ocurses.h>
   

int clrtoeol() int clrtobot()

NOTES

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 here
   

$[]

See the show and two programs for other uses of clrtoeol.
Next topic: Input
Previous topic: clear and erase

© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 27 April 2004