Repository navigation
feat: :mouse hands the mouse back to the terminal, and takes it again - #49
Merged
Merged
Conversation
While pullpen reports the mouse, most terminals select text only with Shift held, and a terminal that reports it badly has no way out. :mouse turns reporting off until it is typed again or pullpen quits. The wiki says what the mouse does in the first session, lists :mouse with the commands, and names it in troubleshooting. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
:mouseturns mouse reporting off, and typed again turns it back on. It lasts until pullpen quits.Counter-argument first. A terminal with poor mouse support mostly just sends nothing, so capture costs it nothing and a switch is clutter. What survives is text selection: while pullpen has the mouse, most terminals select only with Shift held, and a terminal that reports the mouse wrongly has no way out short of quitting. It is a command and not a key, as ADR-028 asks.
The setting lives on
App(ui.mouse) and the event loop makes the terminal follow it, so coming back from$EDITORkeeps it off.Wiki. Commands lists
:mouse; Keys explains Shift and the toggle; Troubleshooting has an entry for "dragging does not select text"; Your first session says the mouse works and links to the table.Proof
make checkpasses (code 11,390 of 11,500).mouse_turns_the_mouse_off_and_the_next_one_turns_it_back_onincrates/pullpen-ui/src/app/input/tests.rs.:mousewrites?1006l ?1003l ?1002l ?1000land says "mouse off", the next writes?1000h ?1002h ?1003h ?1006hand says "mouse on".Not in this PR: a
[ui] mouse = falsesetting to start with it off. Not verified: Windows Terminal.🤖 Generated with Claude Code