3 releases

new 0.7.2 Apr 19, 2025
0.7.1-beta Apr 13, 2025
0.7.0 Apr 10, 2025

#494 in Command-line interface

Download history 322/week @ 2025-04-09

322 downloads per month
Used in cicada

MIT/Apache

265KB
6K SLoC

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 lineread::{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.");

linefeed

linefeed is a configurable, concurrent, extensible, interactive input reader for Unix terminals and Windows console.

API Documentation

This is a linefeed fork

cicada shell relies on linefeed a lot. As murarth got no time on new updates, I forked it here to make changes for supporting for command line highlighting etc.

Dependencies

~6MB
~128K SLoC