From 5e433fb0d12198301e2a05727899b7312a31e47e Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Fri, 5 Aug 2016 21:53:38 -0400 Subject: Allow both 'q' and Ctrl-C to quit Alo update the title text with information on how to quit. --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 @ _ => { -- cgit v1.2.3