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")
Content copied to clipboard
Properties
Link copied to clipboard
Information about the current terminal.
Link copied to clipboard
Lines of input to return from readLineOrNull.
Functions
Link copied to clipboard
Link copied to clipboard
Display a PrintRequest on this terminal.
Link copied to clipboard
fun TerminalRecorder.outputAsHtml(includeBodyTag: Boolean = true, includeCodeTag: Boolean = true, backgroundColor: Color? = SRGB("#0c0c0c")): String
Render the contents of this TerminalRecorder as an HTML document.
Link copied to clipboard
Read a single line of input from stdin, returning null if no input is available