text-input 0.1.2

A simple library for interactive text input in the terminal
Documentation
  • Coverage
  • 0%
    0 out of 2 items documented0 out of 1 items with examples
  • Size
  • Source code size: 3.16 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 991.98 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 9s Average build duration of successful builds.
  • all releases: 8s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Documentation
  • Ricardo7c/Text-input
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Ricardo7c

Text input library

A simple library for interactive text input in the terminal. It displays a message to the user and captures input synchronously, returning the entered text as a String (with spaces and line breaks removed). Ideal for CLI applications in Rust that need direct and clean user input.

Example:

use text_input::text;

fn main() {
    let name = text("What's your name? ");
    print!("Hi, {}", name);
}
$ cargo run

What's your name? Rust
Hi, Rust