//go:build !windows package tui import ( "os" "os/signal" "syscall" ) func detectSizeChange() { sigs := make(chan os.Signal, 1) signal.Notify(sigs, syscall.SIGWINCH) for _ = range sigs { sendEvent(Event {Resize: true}) } }