Skip to main content

Module output

Module output 

Source
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 true when pipe input data is available.
is_capturing
Returns true when 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.