good morning!!!!

Skip to content
Snippets Groups Projects
Commit b902de20 authored by Jeffrey Wilcke's avatar Jeffrey Wilcke
Browse files

Fixes #49

parent 3f5b3484
No related branches found
No related tags found
No related merge requests found
......@@ -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:
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment