aboutsummaryrefslogtreecommitdiffstats
path: root/ethereum
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-05-22 05:46:16 +0800
committerobscuren <geffobscura@gmail.com>2014-05-22 05:46:16 +0800
commitb902de20c7119ec521a28bba986a0cc9d14354c0 (patch)
treef0f76d064085650afc3aa365dfc7a516fb91fdbd /ethereum
parent3f5b348451a8acd4c22be1c320808dd4eadc38d3 (diff)
downloadgo-tangerine-b902de20c7119ec521a28bba986a0cc9d14354c0.tar.gz
go-tangerine-b902de20c7119ec521a28bba986a0cc9d14354c0.tar.zst
go-tangerine-b902de20c7119ec521a28bba986a0cc9d14354c0.zip
Fixes #49
Diffstat (limited to 'ethereum')
-rw-r--r--ethereum/repl_darwin.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/ethereum/repl_darwin.go b/ethereum/repl_darwin.go
index cb11adfc7..fa36b0d52 100644
--- a/ethereum/repl_darwin.go
+++ b/ethereum/repl_darwin.go
@@ -18,13 +18,18 @@ import (
func initReadLine() {
C.rl_catch_sigwinch = 0
+ C.rl_catch_signals = 0
c := make(chan os.Signal, 1)
signal.Notify(c, syscall.SIGWINCH)
+ signal.Notify(c, os.Interrupt)
go func() {
for sig := range c {
switch sig {
case syscall.SIGWINCH:
C.rl_resize_terminal()
+
+ case os.Interrupt:
+ C.rl_cleanup_after_signal()
default:
}