cplusplus.com
C++ : Forum : UNIX/Linux Programming : how to clear just 1 line in a terminal
 
cplusplus.com
Information
Documentation
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs


question how to clear just 1 line in a terminal

flyersender (3)
hi, guys...

I'd like to know how to clear just one line in a terminal...

if I use "clear"...it clears all the screen

thanx

evandro
Duoas (5974)
Use NCurses.
http://www.gnu.org/software/ncurses/

If you are on Unix, you've probably already got it installed. If you are on Linux, you'll need to sudo apt-get ncurses-dev or somesuch.

Getting started.
http://tldp.org/HOWTO/NCURSES-Programming-HOWTO/

Good luck!
flyersender (3)
thanx...very useful!
Topic archived. No new replies allowed.