From b902de20c7119ec521a28bba986a0cc9d14354c0 Mon Sep 17 00:00:00 2001 From: obscuren Date: Wed, 21 May 2014 23:46:16 +0200 Subject: [PATCH] Fixes #49 --- ethereum/repl_darwin.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ethereum/repl_darwin.go b/ethereum/repl_darwin.go index cb11adfc7f..fa36b0d526 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: }