| Crates.io | linefeed2 |
| lib.rs | linefeed2 |
| version | 0.0.1 |
| created_at | 2024-10-10 03:14:23.751643+00 |
| updated_at | 2024-10-10 03:14:23.751643+00 |
| description | Interactive terminal input reader base `https://github.com/murarth/linefeed` |
| homepage | https://github.com/skyfireitdiy/linefeed |
| repository | https://github.com/skyfireitdiy/linefeed |
| max_upload_size | |
| id | 1403403 |
| size | 306,361 |
linefeed2linefeed2 is a configurable, concurrent, extensible, interactive input reader
for Unix terminals and Windows console.
linefeed2 follows the paradigm of GNU Readline, binding key sequences to
commands that modify input state. linefeed2 supports many GNU Readline commands.
However, linefeed2 does not implement all commands supported by GNU Readline.
If there's a command you want to be implemented, file an issue!
linefeed2 also interprets GNU Readline inputrc configuration files.
First, it will check for a filename in the environment variable INPUTRC.
Then, on Unix, it will check $HOME/.inputrc or /etc/inputrc;
while, on Windows, it will check %APPDATA%\linefeed\inputrc.
Only the first of these that is present is parsed and evaluated.
To include linefeed2 in your project, add the following to your Cargo.toml:
[dependencies]
linefeed2 = "0.6"
The linefeed2 project contains a demo program for testing functionality.
To run the demo, run the following from a clone of the linefeed2 project:
cargo run --example demo
linefeed2 is distributed under the terms of both the MIT license and the
Apache License (Version 2.0).
See LICENSE-APACHE and LICENSE-MIT for details.