This might be a Ghostty issue, but I'm having trouble when launching the tcell app.
After pasting text in Ghostty, when I launch the tcell mouse demo, the app behaves as if the left mouse button is continuously pressed.
The stuck state is cleared only after a right-click.
This does not happen in gnome-terminal.
Expected behavior
Mouse button state should be clean at startup.
Left button should only be reported as pressed when physically pressed.
Actual behavior
After paste in Ghostty, the app starts with left-click effectively stuck (drag-like behavior), and it remains stuck until one right-click event occurs.
Environment
- Terminal emulator: Ghostty 1.3.0
- OS: Linux and macos
- tcell version: latest main branch (current HEAD)
- Repro target: _demos/mouse.go
Reproduction steps
- Open Ghostty.
- Paste any text (clipboard paste).
- Launch the tcell mouse demo.
go run _demous/mouse.go
- Move/click the mouse in the app.
- Observe that left-button state appears stuck until right-click once.
Comparison
This might be a Ghostty issue, but I'm having trouble when launching the tcell app.
After pasting text in Ghostty, when I launch the tcell mouse demo, the app behaves as if the left mouse button is continuously pressed.
The stuck state is cleared only after a right-click.
This does not happen in gnome-terminal.
Expected behavior
Mouse button state should be clean at startup.
Left button should only be reported as pressed when physically pressed.
Actual behavior
After paste in Ghostty, the app starts with left-click effectively stuck (drag-like behavior), and it remains stuck until one right-click event occurs.
Environment
Reproduction steps
go run _demous/mouse.goComparison