Package-level declarations

Types

Link copied to clipboard
@ThreadSafe
class LiveVar<T>

A special variable which can be used to auto-rerender a target Section without needing to call RunScope.rerender yourself.

Functions

Link copied to clipboard

Run through a list of Terminal factory methods, attempting to create them in order until the first one succeeds, or, if they all fail, throws an error.

Link copied to clipboard
fun <T> Session.liveVarOf(value: T): LiveVar<T>

Create a LiveVar whose scope is tied to this session.

Link copied to clipboard
fun Section.runUntilSignal(block: suspend RunScope.() -> Unit)

A Section.run block that won't finish running until RunScope.signal is called.

Link copied to clipboard
fun session(terminal: Terminal = defaultTerminalProviders.firstSuccess(), clearTerminal: Boolean = false, sectionExceptionHandler: (Throwable) -> Unit = {}, block: Session.() -> Unit)

Create a Kotter session.