How to "Clear the Screen" for Windows Command Processor? (Windows 10)
Boqsc
vaidas.boqsc at gmail.com
Tue May 21 07:16:29 UTC 2019
I'm getting unsure why executeShell works on the pause command,
but cls that is responsible for clearing the text do not.
import std.stdio, std.process;
void main()
{
writeln("Some text that will appear in cmd");
executeShell("cls"); // Does not clear the text?
executeShell("pause"); // Pauses the cmd.exe to keep from
closing itself.
}
More information about the Digitalmars-d-learn
mailing list