Package-level declarations

Types

Link copied to clipboard
object Ansi
Link copied to clipboard
Link copied to clipboard

Properties

Link copied to clipboard
const val bold: String
Link copied to clipboard
const val esc: String

The ANSI escape sequence escape.

Link copied to clipboard
const val faint: String
Link copied to clipboard
const val italic: String
Link copied to clipboard
const val reset: String

Reset all text effects.

Functions

Link copied to clipboard
fun bg(color: TerminalColor): String

Set the background color to color.

Link copied to clipboard
fun err(string: String, verbose: Boolean = false, lineEnding: String = "")

Print string prefixed with error: to stderr with the lineEnding.

Link copied to clipboard
fun fg(color: TerminalColor): String

Set the foreground color to color.

Link copied to clipboard
fun info(string: String, verbose: Boolean = false, lineEnding: String = "")

Print string prefixed with info: to stdout with the lineEnding.

Link copied to clipboard
fun move(direction: CursorDirection, distance: Int = 1): String

Move the terminal curser in distance cells in direction.

Link copied to clipboard
fun note(string: String, verbose: Boolean = false, lineEnding: String = "")

Print string prefixed with note: to stdout with the lineEnding.

Link copied to clipboard
fun pos(string: String, verbose: Boolean = false, lineEnding: String = "")

Print string prefixed with success: to stdout with the lineEnding.

Link copied to clipboard
fun warning(string: String, verbose: Boolean = false, lineEnding: String = "")

Print string prefixed with warning: to stdout with the lineEnding.