1
0
Fork 0
No description
Find a file
Daniel Baumann a6811e617c
Releasing debian version 0.2.3-3.
Signed-off-by: Daniel Baumann <daniel@debian.org>
2025-02-05 09:08:53 +01:00
debian Releasing debian version 0.2.3-3. 2025-02-05 09:08:53 +01: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: ")?;