Crate linefeed[−][src]
Provides a configurable, concurrent, extensible, interactive input reader for Unix terminals and Windows console.
Configuration is compatible with GNU Readline.
The main entry to interactive read operations is the Interface
type.
Basic example
use linefeed::{Interface, ReadResult}; let mut reader = Interface::new("my-application")?; reader.set_prompt("my-app> ")?; while let ReadResult::Input(input) = reader.read_line()? { println!("got input {:?}", input); } println!("Goodbye.");
Re-exports
pub use command::Command; |
pub use complete::Completer; |
pub use complete::Completion; |
pub use complete::Suffix; |
pub use function::Function; |
pub use interface::Interface; |
pub use prompter::Prompter; |
pub use reader::Reader; |
pub use reader::ReadResult; |
pub use terminal::DefaultTerminal; |
pub use terminal::Terminal; |
pub use writer::Writer; |
Modules
chars |
Provides utilities for manipulating character values |
command |
Defines the set of line editing commands |
complete |
Provides utilities for implementing word completion |
function |
Provides the |
inputrc |
Parses configuration files in the format of GNU Readline |
interface |
Provides the main interface to interactive input reader |
memory |
Implements an in-memory |
prompter |
Provides access to prompt input state |
reader |
Provides access to terminal read operations |
table |
Provides utilities for formatting strings in a table |
terminal |
Provides a low-level terminal interface |
variables |
Contains types associated with user-configurable variables |
writer |
Provides access to terminal write operations |
Enums
Signal |
Signal received through a terminal device |