From fde423f272c2094a07ed53e9e27940afae910c0e Mon Sep 17 00:00:00 2001 From: Joshua Clayton Date: Sun, 15 May 2016 16:18:24 -0400 Subject: [PATCH] Reset color when handling interrupt --- src/Unused/CLI/Util.hs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Unused/CLI/Util.hs b/src/Unused/CLI/Util.hs index f209ef3..3dca2c2 100644 --- a/src/Unused/CLI/Util.hs +++ b/src/Unused/CLI/Util.hs @@ -32,6 +32,7 @@ handleInterrupt :: ThreadId -> IO () handleInterrupt tid = do resetScreen showCursor + setSGR [Reset] throwTo tid $ ExitFailure code where code = signalToInt $ 128 + keyboardSignal