21 releases

0.4.7 Jul 21, 2025
0.4.5 Dec 30, 2024
0.4.4 Nov 27, 2024
0.4.2 Feb 2, 2024
0.2.1 Mar 31, 2022

#76 in Command-line interface

Download history 2089/week @ 2025-10-25 1990/week @ 2025-11-01 1871/week @ 2025-11-08 1568/week @ 2025-11-15 2173/week @ 2025-11-22 2181/week @ 2025-11-29 1885/week @ 2025-12-06 2043/week @ 2025-12-13 1410/week @ 2025-12-20 1044/week @ 2025-12-27 2249/week @ 2026-01-03 3042/week @ 2026-01-10 3831/week @ 2026-01-17 3168/week @ 2026-01-24 5253/week @ 2026-01-31 3530/week @ 2026-02-07

16,152 downloads per month
Used in 10 crates

Unlicense

33KB
726 lines

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
  • History + Saving/Loading APIs
  • 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.

Dependencies

~5–10MB
~211K SLoC