By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,160 Members | 1,983 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,160 IT Pros & Developers. It's quick & easy.

Pause console output

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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.