aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorTeddy Wing2016-08-05 21:53:38 -0400
committerTeddy Wing2016-08-05 21:53:38 -0400
commit5e433fb0d12198301e2a05727899b7312a31e47e (patch)
tree4e1308a082284c0d160bc14c51c24172d811f64c /src/main.rs
parent8cd2204750940da38aa51f4da6a6b63410cd3f23 (diff)
downloadPassextract-5e433fb0d12198301e2a05727899b7312a31e47e.tar.bz2
Allow both 'q' and Ctrl-C to quit
Alo update the title text with information on how to quit.
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs4
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 @ _ => {