Module terminal

Module terminal 

Source
Expand description

Terminal I/O — backs the Pink-level read and print primitives when narju is run interactively (i.e. the Purple REPL).

Wraps a rustyline Editor configured with the same look-and-feel as the raw λ↑↓ REPL: syntax-highlighted input via NarjuHelperLite, bracket-pair flash on cursor, multi-line input via the bracket validator, persistent history at ~/.narju_purple_history, and Alt-p/Alt-n history search keybindings.

Variable completion is not enabled — Pink’s let-bindings live inside the booted prelude’s lexical scope and aren’t reachable from the Rust side. Filename completion is also disabled (out of context for a Pink REPL).

Structs§

TerminalIo
A NarjuIo over a rustyline editor: highlighted, history-backed line input on stdin, plain println! output.