Tty
Types
Functions
Save the current terminal settings and enter "raw" mode.
Use platform-specific window monitoring to call Callback.onResize when the OS determines the terminal window size has changed. You must call setCallback to monitor these events.
Read up to count bytes into buffer at offset from the TTY. The number of bytes read will be returned. 0 will be returned if interruptRead is called while waiting for input. -1 will be returned if the TTY is not interactive.
Read up to count bytes into buffer at offset from the TTY. The number of bytes read will be returned. 0 will be returned if interruptRead is called while waiting for input, or if at least timeoutMillis have passed without data. -1 will be returned if the TTY is not interactive.
Set or clear the callback used for reporting events about the terminal using platform-specific integration. The callback may be invoked on any thread and must never throw an exception. On Windows the callback will only be invoked during calls to read or readWithTimeout.