/
README (full)
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: ")?;
| dir | debian/ |
| dir | examples/ |
| dir | src/ |
| file | .cargo_vcs_info.json |
| file | .gitignore |
| file | CHANGELOG |
| file | Cargo.lock |
| file | Cargo.toml |
| file | Cargo.toml.orig |
| file | LICENSE.md |
| file | README.md |
| file | README.tpl |