diff --git a/tea.go b/tea.go index 59a595f..76d1d61 100644 --- a/tea.go +++ b/tea.go @@ -325,6 +325,8 @@ func (p *Program) Start() error { defer func() { if r := recover(); r != nil { p.ExitAltScreen() + p.DisableMouseCellMotion() + p.DisableMouseAllMotion() fmt.Printf("Caught panic:\n\n%s\n\nRestoring terminal...\n\n", r) debug.PrintStack() return