Fix windows build

No UNIX signals are defined under windows, so Ctrl-Z sending SIGSTOP to self is removed.
This commit is contained in:
Yufan Lou 2016-05-06 03:50:04 +08:00
parent b473d98f1a
commit e9702239da
1 changed files with 1 additions and 7 deletions

View File

@ -25,12 +25,6 @@ func mainLoop(memBolt *BoltDB, style Style) {
for {
event := termbox.PollEvent()
if event.Type == termbox.EventKey {
if event.Key == termbox.KeyCtrlZ {
process, _ := os.FindProcess(os.Getpid())
termbox.Close()
process.Signal(syscall.SIGSTOP)
termbox.Init()
}
newScreenIndex := displayScreen.handleKeyEvent(event)
if newScreenIndex < len(screens) {
displayScreen = screens[newScreenIndex]
@ -74,4 +68,4 @@ func main() {
mainLoop(memBolt, style)
defer db.Close()
}
}