From 176f6d416001cb3208a452a6ace44cb27adfc8ba Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Fri, 5 Aug 2016 23:32:38 -0400 Subject: 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`. --- src/main.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src') 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(); -- cgit v1.2.3