Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to clear a specific line with NCurses?

Tags:

c

ncurses

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?

like image 522
Kristina Brooks Avatar asked Feb 22 '11 00:02

Kristina Brooks


People also ask

How do you delete a line on ncurses?

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

How do you clear a window in ncurses?

If you just want to clear the screen immediately, you should find another way to do it. The clear command should do it; just call system("clear"); .


1 Answers

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

like image 78
Pablo Santa Cruz Avatar answered Sep 19 '22 22:09

Pablo Santa Cruz