terminateStdIn static method
Terminates the global stdin
listener, making future listens impossible.
This method should be invoked only at the end of a program's execution.
Implementation
static Future<void> terminateStdIn() async {
await sharedStdIn.terminate();
}