showing progress in a command-line application 
Author Message
 showing progress in a command-line application

Quote:

> I have no idea how to seek back in the console and rewrite the current
> progress. I am using cout to write to the console.

> Can anyone help?

When in Rome do as Romans do... don't seek back nothing, do progress Microsoft's way -
print dots. boink boink boink... everyone calms down and just sits there in trance,
watching dots go plop plop plop. Be professional, Dennis.
Quote:

> Best regards



Wed, 07 May 2003 03:00:00 GMT  
 showing progress in a command-line application
I have no idea how to seek back in the console and rewrite the current
progress. I am using cout to write to the console.

Can anyone help?

Best regards



Thu, 08 May 2003 10:14:18 GMT  
 showing progress in a command-line application
How 'bout GetConsoleScreenBufferInfo() (to get the cursor position you want
to remember) and SetConsoleCursorPosition() (to move the cursor there when
you want to update the progress indicator).

 - Vince

Quote:

>I have no idea how to seek back in the console and rewrite the current
>progress. I am using cout to write to the console.

>Can anyone help?

>Best regards



Thu, 08 May 2003 12:22:04 GMT  
 showing progress in a command-line application
You can send a carriage return before each line, WITHOUT a line
feed. That will overwrite the same line causing no downward advance of
your output.

print("\rThis line is information             ");

Add extra space on the end to delete parts of lines that came
previously and which are longer than this one.

Walt Howard

Quote:

> I have no idea how to seek back in the console and rewrite the current
> progress. I am using cout to write to the console.

> Can anyone help?

> Best regards



Fri, 09 May 2003 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Showing file loading/saving progress in progress bar?

2. Progress bar not showing visual progress

3. preventing the logo and command line from being printed during command line build

4. How can i run a command line from my application

5. Loading Windows Application at Command Line

6. running exe from c$ application with command line

7. Command line application debugging

8. How to run a C# application with command line compiler

9. CString in command line applications

10. Command line application in Visual C++ 5

11. Command line application in Visual C++ 5

12. newbie q: command line args for win32 application on win Ce

 

 
Powered by phpBB® Forum Software