jesseduffield / jesseduffield/lazygit
garbage characters left in terminal on exit
- Dominant language
- Go
- Stars
- 82.4k
- Forks
- 3k
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 19
Description
### Describe the bug
I'm using lazygit over a SSH connection (using Windows Terminal with TERM=xterm-256) while visiting the UK to my Linux workstation in Austin, TX, so there's some latency. When I exit lazygit, I'm consistently seeing output like this on my terminal
```
❯ lazygit
^[[81;16;113;0;32;1_
bcombee in 🌐 atx-bcombee-mousetrap in os on main [$⇣] took 2s
❯ 1;16;113;0;32;1_
```
The same version of lazygit run locally in a WSL VM doesn't show this behavior, making me think it has something to do with response latency to terminal queries.
### To Reproduce
Steps to reproduce the behavior:
1. Open a SSH connection to a machine with roughly 140ms ping time
2. start lazygit
3. hit "q" to quit
4. See terminal response output on your console where you have to delete it to enter a new command.
### Expected behavior
Nothing is output extra on terminal after program exit
### Version info:
* its a locally built copy using `go install github.com/jesseduffield/lazygit@latest` this afternoon (Feb 5 2026)
### Terminal info:
Windows Terminal Preview 1.24.10212.0
Contributor guide
Assessment
This issue has not been assessed yet.