diff options
author | Teddy Wing | 2016-08-05 23:32:38 -0400 |
---|---|---|
committer | Teddy Wing | 2016-08-05 23:32:38 -0400 |
commit | 176f6d416001cb3208a452a6ace44cb27adfc8ba (patch) | |
tree | 807d3a1b07b46cf90d4c4a227b3d2d0c6db27892 /src/main.rs | |
parent | 0ba6ef6cbaf2a4b7ffd82779b1a7713ed7a3d724 (diff) | |
download | Passextract-176f6d416001cb3208a452a6ace44cb27adfc8ba.tar.bz2 |
Print a list of options to the TUI
Create a hard-coded list of options for testing and print them to the
terminal interface.
These will eventually be selectable with `j`,`k`.
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs index d43a8f1..c11ad14 100644 --- a/src/main.rs +++ b/src/main.rs @@ -17,6 +17,16 @@ fn main() { term.printline_with_cell(0, 2, "->", knockout_cell); term.printline(5, 2, "test"); + let options = vec![ + "e: booya@kacha.ch", + "u: booyakacha", + "p: secret" + ]; + + for (i, s) in options.iter().enumerate() { + term.printline(5, i + 3, s) + } + term.set_cursor(2, 2).unwrap(); let evt = term.get_event(Duration::from_millis(100)).unwrap(); |