Expand description
Library crate for thd75-repl.
This exposes the internal modules that need to be reachable from
integration tests in tests/ and from the binary entry point in
src/main.rs.
The binary is a thin wrapper that imports from this library via its own crate name.
Public modules here are part of the REPL’s internal API, not a stable library API for external consumers.
Modules§
- check
- Accessibility compliance self-check for the
checksubcommand. Accessibility compliance self-check. - confirm
- Transmit confirmation prompt and script-mode gating. Transmit confirmation prompt and script-mode gating.
- help_
text - Per-command detailed help text, returned by
help <command>, plus the multi-line mode help blobs used byhelpwith no arguments. Per-command detailed help text. - lint
- Accessibility lint checker for REPL output lines.
- output
- Pure format functions for every user-facing string.
- script
- Script mode: parse a file of REPL commands and execute them. Script mode: read commands from a file and execute them.
Macros§
- aprintln
- Print a line with an optional
[HH:MM:SS]timestamp prefix and record it in the history buffer.
Constants§
- HISTORY_
CAPACITY_ DEFAULT - Default number of lines retained by the history buffer.
Statics§
- TIMESTAMPS
- Global flag for timestamp output mode.
- UTC_
OFFSET_ SECS - UTC offset in seconds, added to UTC time when forming timestamps.
- VERBOSE
- Global flag for verbose output mode.
Functions§
- is_
verbose - Read the current verbose flag.
- last_
lines - Retrieve the most recent
nlines from the history buffer. - last_
output - Rolling buffer of recent user-facing output lines, ordered oldest
to newest. Appended to by every
aprintln!invocation and read by thelastREPL command. - record_
output - Append
lineto the history buffer, evicting the oldest entry when the buffer would exceed the configured capacity. Intended to be called only from theaprintln!macro. - set_
history_ capacity - Update the history buffer capacity at startup.