Crate shrs_line

Source
Expand description

Readline implementation for shrs

Readline is the part of the shell that is responsible for taking in user input. It handles a variety of things like keeping track of history, syntax highlighting, tab completion, vi mode, and many more.

shrs_line has a similar design philosophy to the rest of shrs in that it is also highly configurable and extensible. Simply construct your own readline and give it to shrs to use.

§Example

use shrs_line::prelude::*;

let mut myline = LineBuilder::default();

Re-exports§

pub use shrs_core as _core;

Modules§

buffer_history
completion
Shell autocompletion
cursor
Configuration for cursor
highlight
Syntax highlighting
hooks
Hooks that are defined by shrs_readline
line
Core readline configuration
menu
General purpose selection menu for shell
painter
Internal renderer
prelude
Imports the commonly used structs and types
prompt
Shell prompt
vi