is there a way to pause a program and resume with just a key press (or enter key)
WhatMeWorry via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Jul 14 19:49:55 PDT 2014
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.
char ignore;
writeln("Enter to continue");
readf(" %s", &ignore);
Is there a way to continue with any old key press? or just the
enter key?
Thanks in advance.
More information about the Digitalmars-d-learn
mailing list