Package-level declarations

Types

Link copied to clipboard
class TestTerminal(width: Int = 80, height: Int = 24) : Terminal

A mock implementation of Terminal for use in unit and integration tests.

Functions

Link copied to clipboard
fun Buffer.assertCellAt(x: Int, y: Int, char: Char? = null, foreground: Color? = null, background: Color? = null, bold: Boolean? = null, italic: Boolean? = null, underline: Boolean? = null, strikethrough: Boolean? = null)

Asserts the state of a specific cell in the buffer.

Link copied to clipboard
fun Buffer.assertContainsText(text: String)

Asserts that the buffer contains the specified text anywhere in its character grid.

Link copied to clipboard
fun Buffer.captureSnapshot(): String

Captures the characters in the Buffer as a literal string representation.