sigildocs

(sigil tui input)

(sigil tui input) - Text input widget

Mutable input state with Emacs-style keybindings for single-line text editing. Handles cursor movement, deletion, and text insertion.

Exports

Create a new input state with empty value.

input-valueprocedure

Get the current input value.

input-cursorprocedure

Get the current cursor position.

Set the input value.

Set the cursor position.

input-clear!procedure

Clear the input.

Handle a key event, returning a symbol or #f.

Returns 'submit when Enter is pressed, #f otherwise. Modifies the input state in place.