Package-level declarations

Types

Link copied to clipboard
class ProcessContext(title: String)
Link copied to clipboard
class ProcessContext2(titleProperty: KMutableProperty0<String>, update: () -> Unit)
Link copied to clipboard
data class ProcessState(var title: String, var status: StepStatus = ACTIVE)

Functions

Link copied to clipboard
fun <T> Terminal.process(title: String, content: () -> Widget? = { null }, color: TextStyle = brightBlue, footer: String? = null, enterToContinue: Boolean = true, keyOptions: (done: Boolean) -> Map<String, KeyOption> = { emptyMap() }, onAnimate: (widget: Widget) -> Unit? = null, onDone: (animation: Animation<*>, throwable: Throwable?) -> Unit? = null, block: context(CoroutineScope) suspend ProcessContext.() -> T): T
context(terminal: Terminal)
suspend fun <T> CoroutineScope.process(title: String, content: () -> Widget? = { null }, color: TextStyle = brightBlue, footer: String? = null, enterToContinue: Boolean = true, keyOptions: (done: Boolean) -> Map<String, KeyOption> = { emptyMap() }, onAnimate: (widget: Widget) -> Unit? = null, onDone: (animation: Animation<*>, throwable: Throwable?) -> Unit? = null, block: context(CoroutineScope) suspend ProcessContext.() -> T): T
Link copied to clipboard
fun <T> Terminal.process2(title: String, content: () -> Widget? = { null }, keyOptions: Map<String, SelectKeyOption>? = null, onAnimate: (widget: Widget) -> Unit? = null, onDone: (animation: Animation<*>) -> Unit? = null, block: suspend ProcessContext2.() -> T): T