TerminalRecorder
A TerminalInterface that records all output and allows you to provide input.
Exmaple
val recorder = TerminalRecorder()
val t = Terminal(terminalInterface = recorder)
t.println("Hello, world!")
assertEquals(recorder.output(), "Hello, world!\n")
Properties
Input events to return when reading in raw mode
Lines of input to return from readLineOrNull.
Functions
Display a PrintRequest on this terminal.
Enter raw mode on the terminal, disabling line buffering and echoing to enable reading individual character.
Return the current size, in cells, of the terminal, or null if the size is unknown.
Render the contents of this TerminalRecorder as an HTML document.
Read a single input event from the terminal, or null if no event is available but this call should be retried immediately.
Read a single line of input from stdin, returning null if no input is available
Return true if the getTerminalSize method should be called frequently to update the size.