Scoop API

scoop:scoop.readline:0.1.0

EditingSession

class EditingSession

source · line 23
public
public class EditingSession public constructor(
    public val config: Config = readlineConfig(),
    public val history: History = FileHistory(config),
    initial: String = "",
    cursor: Long = initial.charLength,
    public val completer: Completer = NoCompleter,
    public val hinter: Hinter = NoHinter,
    public val highlighter: Highlighter = PlainHighlighter,
    public val validator: Validator = AcceptAll
)

The production editor core, driven by terminal events or application-provided events.

constructor constructor

source · line 23
public
constructor(public val config: Config = readlineConfig(), public val history: History = FileHistory(config), initial: String = "", cursor: Long = initial.charLength, public val completer: Completer = NoCompleter, public val hinter: Hinter = NoHinter, public val highlighter: Highlighter = PlainHighlighter, public val validator: Validator = AcceptAll)

function flushPendingSequence

source · line 177
public
public fun flushPendingSequence(): EditResult

Resolves an incomplete custom sequence through the normal key map after its timeout.

function takeClearScreen

source · line 306
public
public fun takeClearScreen(): Boolean

Consumes a request to clear the screen.