mirror of
https://github.com/joshuaclayton/unused.git
synced 2024-08-15 15:50:26 +03:00
Reset color when handling interrupt
This commit is contained in:
parent
2d65555b60
commit
fde423f272
@ -32,6 +32,7 @@ handleInterrupt :: ThreadId -> IO ()
|
||||
handleInterrupt tid = do
|
||||
resetScreen
|
||||
showCursor
|
||||
setSGR [Reset]
|
||||
throwTo tid $ ExitFailure code
|
||||
where
|
||||
code = signalToInt $ 128 + keyboardSignal
|
||||
|
Loading…
Reference in New Issue
Block a user