inputTTY property

bool inputTTY
final

Whether to prefer the controlling TTY (/dev/tty) for interactive input.

This is useful when stdin is redirected (e.g. piping a file into the process) but you still want the TUI to read keystrokes from the terminal.

On Unix platforms, the runtime attempts to open /dev/tty and will use stty to toggle raw mode for that device.

Implementation

final bool inputTTY;