Expand description
Shell output formatting and capture.
When capture mode is active, shell_print! / shell_println! write to an
internal buffer instead of serial + VGA. This powers pipe (|) and
redirection (>, >>) in the Chevron shell.
Functionsยง
- capture_
write_ bytes - Append raw bytes to the capture buffer (called by the macros).
- clear_
pipe_ input - Clear any pending pipe input.
- clear_
screen - Clear the VGA screen.
- format_
bytes - Format bytes as human-readable size.
- has_
pipe_ input - Returns
truewhen pipe input data is available. - is_
capturing - Returns
truewhen capture mode is active. - print_
char - Print a character (no newline).
- print_
prompt - Print the shell prompt.
- set_
pipe_ input - Set pipe input data for the next command in a pipeline.
- start_
capture - Begin capturing shell output into an internal buffer.
- take_
capture - Stop capturing and return the accumulated bytes.
- take_
pipe_ input - Take and return the current pipe input, if any.