Skip to content

Enable/Disable TTY & set max time since last output (idleTimeout)

Compare
Choose a tag to compare
@TitasGailius TitasGailius released this 24 Jun 10:56
· 18 commits to master since this release

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(...);