Merge pull request #1 from louy2/remove-signal

Fix windows build
This commit is contained in:
Brian Buller 2016-05-09 10:42:13 -05:00
commit fb91d0fdfa

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()
}
}