2 releases

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

#6 in #terminal-input

Download history 180/week @ 2025-04-05

180 downloads per month
Used in cicada

MIT/Apache

265KB
5.5K 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