Add shell command support

This commit is contained in:
Zachary Yedidia
2019-01-10 16:37:05 -05:00
parent 0febfd2c80
commit c479c9d91a
9 changed files with 186 additions and 36 deletions

View File

@@ -13,7 +13,7 @@ import (
// This only works on linux and has no default binding.
// This code was adapted from the suspend code in nsf/godit
func (*BufHandler) Suspend() bool {
screen.TempFini()
screenb := screen.TempFini()
// suspend the process
pid := syscall.Getpid()
@@ -22,7 +22,7 @@ func (*BufHandler) Suspend() bool {
util.TermMessage(err)
}
screen.TempStart()
screen.TempStart(screenb)
return false
}