Watch
1
0
Fork
You've already forked rust-terminal-prompt
0
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Daniel Baumann 5ea1771f9d
Updating to debhelper 14.
Signed-off-by: Daniel Baumann <daniel@debian.org>
2026-06-14 12:50:40 +02:00
debian Updating to debhelper 14. 2026-06-14 12:50:40 +02:00
examples Adding upstream version 0.2.3. 2025-02-05 06:17:43 +01:00
src Adding upstream version 0.2.3. 2025-02-05 06:17:43 +01:00
.cargo_vcs_info.json Adding upstream version 0.2.3. 2025-02-05 06:17:43 +01:00
.gitignore Adding upstream version 0.2.3. 2025-02-05 06:17:43 +01:00
Cargo.lock Adding upstream version 0.2.3. 2025-02-05 06:17:43 +01:00
Cargo.toml Adding upstream version 0.2.3. 2025-02-05 06:17:43 +01:00
Cargo.toml.orig Adding upstream version 0.2.3. 2025-02-05 06:17:43 +01:00
CHANGELOG Adding upstream version 0.2.3. 2025-02-05 06:17:43 +01:00
LICENSE.md Adding upstream version 0.2.3. 2025-02-05 06:17:43 +01:00
README.md Adding upstream version 0.2.3. 2025-02-05 06:17:43 +01:00
README.tpl Adding upstream version 0.2.3. 2025-02-05 06:17:43 +01:00

terminal-prompt

Tiny library for prompting sensitive or non-sensitive data on the terminal.

The only dependency is libc on Unix and winapi on Windows.

See Terminal for the API documentation.

Example

Read a username and password from the terminal:

use terminal_prompt::Terminal;
let mut terminal = Terminal::open()?;
let username = terminal.prompt("Username: ")?;
let password = terminal.prompt_sensitive("Password: ")?;