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 { for {
event := termbox.PollEvent() event := termbox.PollEvent()
if event.Type == termbox.EventKey { 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) newScreenIndex := displayScreen.handleKeyEvent(event)
if newScreenIndex < len(screens) { if newScreenIndex < len(screens) {
displayScreen = screens[newScreenIndex] displayScreen = screens[newScreenIndex]