Debian Codegraph @

README.md

raw symbols SCIP
1 # terminal-prompt
2
3 Tiny library for prompting sensitive or non-sensitive data on the terminal.
4
5 The only dependency is `libc` on Unix and `winapi` on Windows.
6
7 See [`Terminal`] for the API documentation.
8
9 ## Example
10 Read a username and password from the terminal:
11 ```rust
12 use terminal_prompt::Terminal;
13 let mut terminal = Terminal::open()?;
14 let username = terminal.prompt("Username: ")?;
15 let password = terminal.prompt_sensitive("Password: ")?;
16 ```
17
18 [`Terminal`]: https://docs.rs/terminal-prompt/latest/terminal_prompt/struct.Terminal.html