From 481e2797f7dcc104c5cc023a554cd2eef6790563 Mon Sep 17 00:00:00 2001 From: makeworld Date: Sun, 26 Jul 2020 11:21:33 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Catch=20Ctrl-C=20-=20fixes=20#51?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- display/display.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/display/display.go b/display/display.go index 3af09c4..e6d9650 100644 --- a/display/display.go +++ b/display/display.go @@ -341,6 +341,9 @@ func Init() { case tcell.KeyCtrlQ: Stop() return nil + case tcell.KeyCtrlC: + Stop() + return nil case tcell.KeyRune: // Regular key was sent switch string(event.Rune()) {