charmbracelet / charmbracelet/bubbletea
tea.ExecProcess does not restore mouse motion
- Dominant language
- Go
- Stars
- 44.9k
- Forks
- 1.3k
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
Run vim with tea.ExecProcess, exit vim -> no mouse events, also some problems with altscreen.
**Setup**
Please complete the following information along with version numbers, if applicable.
- OS macOS
- Shell zsh
- Terminal Emulator Terminal.app
- Terminal Multiplexer none
**To Reproduce**
Steps to reproduce the behavior:
1. Use https://fx.wtf
2. Click on 'v' to open file.
3. Exit vim.
4. See error
**Source Code**
https://fx.wtf
**Expected behavior**
AltScreen and MoueCell restored.
Contributor guide
Research direction
Start at the tea.ExecProcess entry point and reproduce the problem using the fx.wtf application: open a file with vim, exit it, and check mouse events and the alternate screen state. Trace the terminal-state cleanup and verify that mouse input and AltScreen are restored after the process exits.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100