Crates.io | linefeed |
lib.rs | linefeed |
version | 0.6.0 |
source | src |
created_at | 2016-08-24 02:51:04.38967 |
updated_at | 2019-04-26 16:57:35.098015 |
description | Interactive terminal input reader |
homepage | https://github.com/murarth/linefeed |
repository | https://github.com/murarth/linefeed |
max_upload_size | |
id | 6091 |
size | 288,257 |
linefeed
linefeed
is a configurable, concurrent, extensible, interactive input reader
for Unix terminals and Windows console.
linefeed
follows the paradigm of GNU Readline, binding key sequences to
commands that modify input state. linefeed
supports many GNU Readline commands.
However, linefeed
does not implement all commands supported by GNU Readline.
If there's a command you want to be implemented, file an issue!
linefeed
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 linefeed
in your project, add the following to your Cargo.toml
:
[dependencies]
linefeed = "0.6"
The linefeed
project contains a demo program for testing functionality.
To run the demo, run the following from a clone of the linefeed
project:
cargo run --example demo
linefeed
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.