Scoop API

scoop:scoop.terminal:0.1.0

InputParser

class InputParser

source · line 12
public
public class InputParser public constructor(internal val escapeDelay: Duration = Duration.milliseconds(50L))

A pure incremental terminal byte parser. Feed monotonically nondecreasing times so Escape ambiguity can expire deterministically; parser methods perform no terminal I/O.

function next

source · line 75
public
public fun next(): InputItem?

Removes the next queued item, or None when the queue is empty.

function finish

source · line 81
public
public fun finish(): Unit

Marks input ended, emitting a lone Escape key or an invalid incomplete sequence as needed. Repeated finish is harmless.