Captures the stdinMode and stdoutMode to restore later.
stdinMode
stdoutMode
const WindowsConsoleModes(this.stdinMode, this.stdoutMode);