feat: support resize window on windows

This commit is contained in:
Nao YONASHIRO 2018-02-20 22:40:16 +09:00
parent b884e90bc5
commit 98e83ff8e4

View File

@ -38,6 +38,8 @@ func (p *Prompt) handleSignals(exitCh chan int, winSizeCh chan *WinSize, stop ch
log.Println("[SIGNAL] Catch SIGQUIT")
exitCh <- 0
}
case w := <-p.in.(*WindowsParser).tty.SIGWINCH():
winSizeCh <- &WinSize{Row: uint16(w.H), Col: uint16(w.W)}
}
}
}