TerminalReader

Properties

Link copied to clipboard
val events: ReceiveChannel<Event>

Events read as a result of calls to tryReadEvents.

Link copied to clipboard

Indicate whether Kitty's escape code disambiguation progressive-enhancement is enabled.

Link copied to clipboard

Indicate whether XTerm's UTF-8 extended mouse is enabled (mode 1005).

Functions

Link copied to clipboard
open override fun close()

Free the resources associated with this reader.

Link copied to clipboard

Synchronously query for the current terminal size.

Link copied to clipboard

Save the current terminal settings and enter "raw" mode.

Link copied to clipboard

Write ResizeEvents into events using platform-specific window monitoring.

Link copied to clipboard
fun interrupt()
Link copied to clipboard

Perform a blocking read from stdin to try and parse events. Calls to this function are not guaranteed to read an event, nor are they guaranteed to read only one event. Events which are read will be placed into events.