TerminalReader

fun TerminalReader(emitDebugEvents: Boolean = false): TerminalReader

Create a TerminalReader which will read from this process' stdin stream while also supporting interruption.

Use with enableRawMode to read input byte-by-byte.

Parameters

emitDebugEvents

When true, each event sent to TerminalReader.events will be followed by a DebugEvent that contains the original event and the bytes which produced it.