How to clear a specific line with NCurses?

Kristina Brooks picture Kristina Brooks · Feb 22, 2011 · Viewed 18k times · Source

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?

Answer

Pablo Santa Cruz picture Pablo Santa Cruz · Feb 22, 2011

You can position on the line you want to clear and then call clrtoeol function.