mirror of
https://github.com/taigrr/bubbletea.git
synced 2026-04-02 02:59:09 -07:00
3
tea.go
3
tea.go
@@ -446,7 +446,6 @@ func (p *Program) Run() (Model, error) {
|
||||
return model, err
|
||||
}
|
||||
defer p.cancelReader.Close() //nolint:errcheck
|
||||
handlers.add(p.readLoopDone)
|
||||
}
|
||||
|
||||
// Handle resize events.
|
||||
@@ -546,7 +545,7 @@ func (p *Program) shutdown(kill bool) {
|
||||
// reader. You can return control to the Program with RestoreTerminal.
|
||||
func (p *Program) ReleaseTerminal() error {
|
||||
p.ignoreSignals = true
|
||||
p.cancelInput()
|
||||
p.cancelReader.Cancel()
|
||||
p.waitForReadLoop()
|
||||
|
||||
p.altScreenWasActive = p.renderer.altScreen()
|
||||
|
||||
Reference in New Issue
Block a user