Crates.io | shli |
lib.rs | shli |
version | 0.4.1 |
source | src |
created_at | 2019-06-11 16:25:17.778315 |
updated_at | 2022-01-18 17:49:04.926703 |
description | Create shell-like TUIs |
homepage | |
repository | https://github.com/UgnilJoZ/shli |
max_upload_size | |
id | 140409 |
size | 30,929 |
Rust crate for shell-like TUIs
If you once saw nslookup, glusterfs or shelldap and admired their shell-like terminal interfaces, this might be a crate for you.
This crate provides basic building blocks for providing users of your software such an interface.
See examples/simple.rs
.
A cargo run --example simple
will run it.
You will see a prompt. Type p, and then press TAB.
> p
It will autocomplete to print
, an example command! Now issue this:
> print Hello
It will print "Hello", which is not spectacular. If you now press the up key, you will be able to edit your last command.
With the left and right keys, the user is able to edit the current commandline.