MCPcopy
hub / github.com/charmbracelet/bubbletea / handleResize

Method handleResize

tea.go:685–696  ·  view source on GitHub ↗

handleResize handles terminal resize events.

()

Source from the content-addressed store, hash-verified

683
684// handleResize handles terminal resize events.
685func (p *Program) handleResize() chan struct{} {
686 ch := make(chan struct{})
687
688 if p.ttyOutput != nil {
689 // Listen for window resizes.
690 go p.listenForResize(ch)
691 } else {
692 close(ch)
693 }
694
695 return ch
696}
697
698// handleCommands runs commands in a goroutine and sends the result to the
699// program's message channel.

Callers 1

RunMethod · 0.95

Calls 1

listenForResizeMethod · 0.95

Tested by

no test coverage detected