How to clear a specific line with NCurses?
I need to wipe a line on the screen without redrawing the whole thing. How do I do that?
How to clear a specific line with NCurses?
I need to wipe a line on the screen without redrawing the whole thing. How do I do that?
You can position on the line you want to clear and then call clrtoeol
function.
This is how I ended up doing it for my purposes.
int y, x; // to store where you are
getyx(stdscr, y, x); // save current pos
move(y, 0); // move to begining of line
clrtoeol(); // clear line
move(y, x); // move back to where you were
maybe crltoeol would do the trick