Skip to content

test(e2e): a program that asks for the mouse gets it, under Node and Bun (#182) - #192

Merged
Maxaubert merged 3 commits into
mainfrom
fix/182-mouse-report
Oct 12, 2026
Merged

Maxaubert merged 3 commits into
mainfrom
fix/182-mouse-report

Conversation

@Maxaubert

Copy link
Copy Markdown
Owner

Refs #182.

A new e2e, mouseReport: a raw-mode program turns mouse reporting on (?1049h ?1000h ?1002h ?1006h), as Claude Code's fullscreen view does, and prints every byte it is sent. Run under Node and under Bun (Claude Code's runtime). Measured:

  • xterm takes the mode: .xterm.enable-mouse-events, the pointer is default, not the text caret;
  • a key reaches it;
  • a click reaches it as an SGR press and release.

It passes on main (10/10). So the caret the owner sees in Claude Code is not the terminal: Claude Code had auto-disabled its fullscreen TUI after repeated failed starts (fullscreenAutoDisabled in ~/.claude.json, 7 strikes, 2026-10-11 10:14, during the #180 investigation), and without fullscreen it never asks for the mouse. Details on #182; /tui fullscreen turns it back on.

This holds the terminal's side for good. Test only, no app change.

🤖 Generated with Claude Code

https://claude.ai/code/session_017XYVRPzvhLpPCr75uB6uaA

Maxaubert and others added 3 commits October 12, 2026 00:36
…Bun (#182)

A raw-mode program turns mouse reporting on, as Claude Code's fullscreen
view does: xterm takes the mode (the arrow, not the text caret), a key and
a click reach it as an SGR press and release. Under Node and under Bun,
Claude Code's runtime. It passes on main: the caret in Claude Code (#182)
was Claude Code's own fullscreen auto-disable, not the terminal.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017XYVRPzvhLpPCr75uB6uaA
@Maxaubert
Maxaubert merged commit adcdc63 into main Oct 12, 2026
2 checks passed
@Maxaubert
Maxaubert deleted the fix/182-mouse-report branch October 12, 2026 03:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant