I don't know about Windows, but on Linux, you can just press
ctrl-s and
ctrl-q to pause/resume the console. (This is a Linux terminal
function,
not specific to D.)
In the Windows shell, the "pause" key will halt a program and
"return" will resume it.
On Tuesday, 15 July 2014 at 02:49:56 UTC, WhatMeWorry wrote:
Is there a way to continue with any old key press? or just the
enter key?
Yeah. It is more complex than you'd think but my terminal library
can do it:
https://github.com/adamdruppe/arsd/blob/master/terminal.d
Example usage:
impor
On Tuesday, 15 July 2014 at 10:22:52 UTC, rumbu wrote:
getch() reads any key and continues;
On Windows you can pipe you executable with the "more" command
to pause after each page: your.exe | more
Don't forget that getch() is also Windows-specific.
On Tuesday, 15 July 2014 at 02:49:56 UTC, WhatMeWorry wrote:
Sorry if this is an incredibly naive question.
I prefer to pragmatically pause my programs periodically so
that I can peruse output statements. Ideally, I'd like to
continue by just hitting any old key. My feeble attempt below
requi
On Tue, Jul 15, 2014 at 02:49:55AM +, WhatMeWorry via Digitalmars-d-learn
wrote:
> Sorry if this is an incredibly naive question.
>
> I prefer to pragmatically pause my programs periodically so that I can
> peruse output statements. Ideally, I'd like to continue by just hitting any
> old key.
Sorry if this is an incredibly naive question.
I prefer to pragmatically pause my programs periodically so that
I can peruse output statements. Ideally, I'd like to continue by
just hitting any old key. My feeble attempt below requires I
enter at least one character and then the enter key.
c