To rewrite single line rather than clear screen

Hi

I want to rewrite single line in my VC++ output. I know there is a Clear screen function. but it will be clear whole screen. Is there any method available to update single line in output window alongwith the execution of rest of the program.

Thanks in advance
There is no standard way.

A portable ways might be curses.

Otherwise you can use OS-specific functions.

If you're using console -- I'd go with pdcurses/ncurses. There are a number of functions that are beneficial. Being able to update just a portion of a line of the screen is one of them
search the msdn for console functions or just console...

use the FillConsoleOutputCharacter()-Func...
Last edited on
To position the cursor use SetConsoleCursorPosition()
http://www.google.com/search?btnI=1&q=msdn+SetConsoleCursorPosition
Topic archived. No new replies allowed.