Support CTRL-Z (SIGSTOP)

This commit is contained in:
Junegunn Choi
2017-04-28 22:58:08 +09:00
parent 6b592137b9
commit d34e4cf698
8 changed files with 92 additions and 41 deletions

View File

@@ -11,3 +11,11 @@ import (
func notifyOnResize(resizeChan chan<- os.Signal) {
signal.Notify(resizeChan, syscall.SIGWINCH)
}
func notifyStop(p *os.Process) {
p.Signal(syscall.SIGSTOP)
}
func notifyOnCont(resizeChan chan<- os.Signal) {
signal.Notify(resizeChan, syscall.SIGCONT)
}