Enable/Disable TTY & set max time since last output (idleTimeout)
TTY
You may enable or disable TTY mode:
Terminal::enableTty()->run(...);
Terminal::disableTty()->run(...);
Idle Timeout
You may specify max allowed time since last output:
// Seconds.
Terminal::idleTimeout(20)->run(...);
// Carbon.
Terminal::idleTimeout(Carbon::now()->addSeconds(20))->run(...);
// DateInterval.
Terminal::idleTimeout(new DateInterval('PT20S'))->run(...);