469,903 Members | 1,815 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,903 developers. It's quick & easy.

Pause console output

Does anyone know if its possible to pause the console output if my console
app tries to write data past the current command prompt buffer?

In other words, behave much like the 'more' command, in that it stops
outputting and waits for the user to hit space to display the next pages
worth, or enter for the next line?

Thanks in advance for any suggestions.

Dan.
Nov 16 '05 #1
2 6707
Use Console.ReadLine() to pause. You'll have to put in the logic to pause
every 25 lines or so if you have more lines of output.

- Noah Coad -
Microsoft MVP

"Dan Williams" <da**********@newcross-nursing.com> wrote in message
news:8l****************************@40tude.net...
Does anyone know if its possible to pause the console output if my console
app tries to write data past the current command prompt buffer?

In other words, behave much like the 'more' command, in that it stops
outputting and waits for the user to hit space to display the next pages
worth, or enter for the next line?

Thanks in advance for any suggestions.

Dan.

Nov 16 '05 #2
On Thu, 1 Apr 2004 15:28:10 -0600, Noah Coad [MVP .NET/C#] wrote:
Use Console.ReadLine() to pause. You'll have to put in the logic to pause
every 25 lines or so if you have more lines of output.

- Noah Coad -
Microsoft MVP

OK, cheers. I'll give it a go.

Is there anyway to get the buffer size of the console/command window, then
i can use that in my logic?
--

Thanks in advance

Dan Williams
Nov 16 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

8 posts views Thread by Wim | last post: by
1 post views Thread by Dan Williams | last post: by
6 posts views Thread by Mark Broadbent | last post: by
5 posts views Thread by Aaron | last post: by
6 posts views Thread by kai | last post: by
1 post views Thread by Waqarahmed | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.