Erases the current line from the logical cursor position to the end of the line.
Curses Library (libcurses.a)
The clrtoeol and wclrtoeol subroutines erase the current line from the cursor to the end of the line, inclusive, in the current or specified window. These subroutines do not update the cursor.
Item | Description |
---|---|
*win | Specifies the window in which to clear the line. |
Upon successful completion, these subroutines return OK. Otherwise, they return ERR.
clrtoeol();
WINDOW *my_window;
wclrtoeol(my_window);