Wait
Part of TutorialFundamentals
Description
Demonstrates waiting for user input.
Example
import std.process; /* for system() */ import std.stdio; /* for writefln */ void main() { writeln("Press enter (using 'std.c.stdio.getchar();' to wait) . . ."); getchar(); version (Windows) { writeln("Waiting again\n(using 'system(\"pause\");'):"); system("pause"); } version (linux) { writeln("Waiting again\n(using 'system(\"read -p \\\"Press enter to continue \\\" nothing;\");'):"); system("read -p \"Press enter to continue \" nothing;"); } }