gitstack

grindlemire/go-tui code browser

392 B Go 11 lines 2026-05-18 · 389d343 raw
1
2
3
4
5
6
7
8
9
10
11
//go:build windows

package tui

// registerResizeSignal is a no-op on Windows: resize events are delivered
// in-band by the console input handle as WINDOW_BUFFER_SIZE_EVENT records,
// which the Windows EventReader decodes directly into ResizeEvent. There is
// no SIGWINCH-style signal to install. Returns a no-op cleanup.
func (a *App) registerResizeSignal() func() {
	return func() {}
}