Expand description
Chevron shell - Minimal interactive kernel shell
Provides a simple interactive command-line interface for kernel management. Prompt: >>>
Modulesยง
- commands
- Shell command registry and entry points
- output
- Shell output formatting and capture.
- parser
- Shell command parser with pipeline and redirection support.
- scripting
- Minimal shell scripting: variable expansion,
if,for,while.
Enumsยง
- Shell
Error - Shell error types
Constantsยง
Staticsยง
- SHELL_
INTERRUPTED - Global flag set by Ctrl+C. Long-running commands should poll this
via
is_interruptedand abort early when it returnstrue.
Functionsยง
- apply_
redirect ๐ - Write captured output to a file (truncate or append).
- char_
count ๐ - Performs the char count operation.
- clear_
visible_ ๐line - Performs the clear visible line operation.
- complete_
replace_ ๐word - Replace the word starting at
word_start(byte offset) withreplacement. - delete_
next_ ๐char_ at_ cursor - Performs the delete next char at cursor operation.
- delete_
prev_ ๐char_ at_ cursor - Performs the delete prev char at cursor operation.
- execute_
line ๐ - Execute a command line, handling scripting, pipes and redirections.
- execute_
pipeline ๐ - Execute a single pipeline (no scripting).
- insert_
bytes_ ๐at_ cursor - Performs the insert bytes at cursor operation.
- is_
continuation_ ๐byte - Returns whether continuation byte.
- is_
interrupted - Returns
trueif Ctrl+C was pressed, and clears the flag. - longest_
common_ ๐prefix - Find the longest common prefix of a set of strings.
- move_
cursor_ ๐left_ chars - Performs the move cursor left chars operation.
- next_
char_ ๐boundary - Performs the next char boundary operation.
- prev_
char_ ๐boundary - Performs the prev char boundary operation.
- print_
bytes ๐ - Performs the print bytes operation.
- redraw_
full_ ๐line - Performs the redraw full line operation.
- redraw_
line ๐ - Redraw the current shell input line after the prompt
- run_
line - Execute one shell line without prompt/history handling.
- shell_
main - Main shell loop
- tab_
complete ๐ - Tab completion for command names and VFS paths.