feat: support resize window on windows
This commit is contained in:
parent
b884e90bc5
commit
98e83ff8e4
@ -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)}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user