Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Option to disable alt-click move cursor to position behavior #3145
Comments
|
The There currently is no option available to disable the alt+click behaviour. I think we would be open to a PR that introduces such a config option (maybe call it Code pointers: xterm.js/src/browser/services/SelectionService.ts Lines 670 to 686 in 8e151ee |
|
Strong upvote from my side for being able to disable that feature completely, as it is basically broken On a side note: Those tons of nonsense output are cursor movement sequences, that the canonical mode of the TTY cannot handle and instead echoes them back to the user. This will happen for most programs, that are not specially prepared for cursor movement and do not run the TTY in raw mode (you can test it with a simple |
|
The problem with this functionality is that is assumes a specific operation mode across the TTY and the slave program, it only works correctly if the line editor of the TTY is switched off (non-canonical) and the slave program has its own terminal view representation which allows cursor movements. This is typically the case for editors, anything else is likely to fail (vast majority of programs). Shells are awkward in that case - some use canonical mode (ash/dash), shells like bash or zsh operate in raw mode and would work for right/left cursor movements, but not up/down as the history is typically linked against up/down. REPLs in general share that problem, most very simplistic REPLs use canonical mode and would fail as well, more advanced ones do the full raw mode/own view repr thing and again link their history against up/down. Last but not least there are curses programs, that might do whatever they want with cursor key sequences. To summarize this: TL;DR: |
|
FWIW I don't use alt+click so it doesn't impact me much, but I know some do and the idea came from established terminal(s). And definitely agree it's "unreliable by design" |



Hi all,
I've been running into an issue that I don't see reported yet in this repo, so I'd like to bring it up.
The issue is described here: microsoft/vscode#101136. When alt-clicking in the vscode terminal, if the program doesn't support (something), the screen can fill up with "^[[D" or "^[[C" characters.
Here's a screenshot:

In the above vscode issue, @Tyriar linked this PR: #896 which seems to have added the alt-click feature. There's apparently no way to disable it, and there's no workaround.
Changing the
"editor.multiCursorModifier"setting was suggested as a workaround, but it didn't work for me.Thanks