diff options
author | Teddy Wing | 2016-08-05 21:53:38 -0400 |
---|---|---|
committer | Teddy Wing | 2016-08-05 21:53:38 -0400 |
commit | 5e433fb0d12198301e2a05727899b7312a31e47e (patch) | |
tree | 4e1308a082284c0d160bc14c51c24172d811f64c | |
parent | 8cd2204750940da38aa51f4da6a6b63410cd3f23 (diff) | |
download | Passextract-5e433fb0d12198301e2a05727899b7312a31e47e.tar.bz2 |
Allow both 'q' and Ctrl-C to quit
Alo update the title text with information on how to quit.
-rw-r--r-- | src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index a732c22..e8b4631 100644 --- a/src/main.rs +++ b/src/main.rs @@ -10,12 +10,12 @@ fn main() { term.swap_buffers().unwrap(); loop { - term.printline(0, 0, "booyakacha"); + term.printline(0, 0, "Passextract (Press q or Ctrl-C to quit)"); let evt = term.get_event(Duration::from_millis(100)).unwrap(); if let Some(Event::Key(ch)) = evt { match ch { - 'q' => { + 'q' | '\x03' => { break; } c @ _ => { |