Buffering channel with a size of 1

This commit is contained in:
Quentin McGaw 2019-07-05 14:46:38 +02:00
parent d8b0e1872f
commit 92837ca1cb

View file

@ -75,7 +75,7 @@ func waitForTerminalSpace() error {
if width > 0 && height > 0 { if width > 0 && height > 0 {
return nil return nil
} }
winch := make(chan os.Signal) winch := make(chan os.Signal, 1)
signal.Notify(winch, syscall.SIGWINCH) signal.Notify(winch, syscall.SIGWINCH)
select { select {
case <-winch: case <-winch: