rustyline-async

Crates.iorustyline-async
lib.rsrustyline-async
version0.4.4
sourcesrc
created_at2022-03-29 15:56:54.525663
updated_at2024-11-27 19:02:13.297334
descriptionA minimal readline with multiline and async support.
homepage
repositoryhttps://github.com/zyansheep/rustyline-async
max_upload_size
id558600
size72,178
Zyansheep (zyansheep)

documentation

https://docs.rs/rustyline-async

README

RustyLine Async

Docs

A minimal readline with multiline and async support.

Inspired by rustyline, async-readline, & termion-async-input. Built using crossterm.

Features

  • Works on all platforms supported by crossterm.
  • Full Unicode Support (Including Grapheme Clusters)
  • Multiline Editing
  • In-memory History
  • Ctrl-C, Ctrl-D are returned as Ok(Interrupt) and Ok(Eof) ReadlineEvents.
  • Ctrl-U to clear line before cursor
  • Ctrl-left & right to move to next or previous whitespace
  • Home/Ctrl-A and End/Ctrl-E to jump to the start and end of the input (Ctrl-A & Ctrl-E can be toggled off by disabling the "emacs" feature)
  • Ctrl-L clear screen
  • Ctrl-W delete until previous space
  • Extensible design based on crossterm's event-stream feature

Feel free to PR to add more features!

Example:

cargo run --example readline

rustyline-async

License

This software is licensed under The Unlicense license.

Commit count: 124

cargo fmt