mirror of
https://github.com/taigrr/bubbletea.git
synced 2026-04-01 18:49:02 -07:00
Based on @knz's work in #499, but slightly supersedes this change. A little more coupling in the resize handling, but a lot less code & logic repetition. Co-authored-by: Raphael 'kena' Poss <knz@thaumogen.net>
11 lines
225 B
Go
11 lines
225 B
Go
//go:build windows
|
|
// +build windows
|
|
|
|
package tea
|
|
|
|
// listenForResize is not available on windows because windows does not
|
|
// implement syscall.SIGWINCH.
|
|
func (p *Program) listenForResize(done chan struct{}) {
|
|
close(done)
|
|
}
|