You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Terminal filled with ^[[D^[[D^[[D^[[D when alt-clicking a link #101136
bugIssue identified by VS Code Team member as probable bugconfirmedIssue has been confirmed by VS Code Team memberinsiders-releasedPatch has been released in VS Code InsidersterminalGeneral terminal issues that don't fall under another labelverifiedVerification succeeded
When alt-clicking in terminal (e. g. to open a file or URL), it gets filled up with lots of ^[[D^[[D^[[D^[[D or ^[[C^[[C^[[C^[[C:
Steps to Reproduce:
Open integrated terminal
Run read (or, for a more practical example, yarn create react-app . && yarn start in a temp dir)
Alt-click anywhere
Does this issue occur when all extensions are disabled?: Yes
Reacted by Dave Rupert, itsMapleLeaf, Mihir Chaturvedi, Kenneth Johnson, Cam, Ben Martin, Matt Mueller, Max Reynolds, Diogo Castro, Gifford Nowland and 33 more
Looks like this is an issue where the alt+click feature (move cursor when clicking) is conflicting with links, only when "editor.multiCursorModifier": "ctrlCmd" is used.
Reacted by Diogo Castro, David Soards, Matija Marohnić, 鸿则, John Datserakis and Russell Osborne
Reacted by Diogo Castro, Matija Marohnić, John Datserakis and Russell Osborne
Reacted by Alexander Pushkov, Jibin Thomas, Dave Rupert and John Datserakis
This issue also occurs on MacOS, only with Opt+Click instead of Alt+Click.
I thought at first that this was related to the Opt+Click on a detected link in the terminal (since that is an Alt+Click on Windows/Linux). But this truly does occur when Opt+Clicking anywhere in the terminal while a read command is waiting for input.
Daniel Imms (@Tyriar) I can confirm that this occurs on my MacOS regardless of the value of "editor.multiCursorModifier" setting.
Reacted by Jason Βoxman, appetite-j and yougotwill
emmm, you say is right, i just change a way to open url in vscode terminal to avoid echo ^[[D but not fix it , this also occurs in terminal.app, item.app if you use option + click.
Oh! That's a great observation, Cam (@yulinfeng000).... Alt+Click fills the terminal with junk even in the standard MacOS Terminal app and also in iTerm2.
Now, I am aware that Alexander Pushkov (@notpushkin) is originally reporting this for Ubuntu. I checked my Linux laptop (Fedora 31), and Alt+Click in the standard system terminal emulator does nothing. It only occurs in VSCode's terminal.
But this still makes me wonder if all of this is system-level issues, or perhaps terminal "emulator" issues, not really a VSCode issue. Hard to know. But the Microsoft devs would know.
As for your workaround, Cam (@yulinfeng000), thank you so much for that!!! I still don't see any change in VSCode's behavior when using "terminal.integrated.macOptionIsMeta": true, but changing "editor.multiCursorModifier" definitely avoids the core issue.
I hope you don't mind me describing in more detail...
According to VSCode documentation for editor.multiCursorModifier, "The Go To Definition and Open Link gestures will also respect this setting and adapt such that they do not conflict. For example, when the setting is ctrlCmd, multiple cursors can be added with Ctrl/Cmd+Click, and opening links or going to definition can be invoked with Alt+Click."
You probably did what I did when originally installing VSCode... I'm using to using Ctrl+Click in Linux and Cmd+Click in MacOS to multi-select files in Finder, items in a list, etc. So I set "editor.multiCursorModifier" to be ctrlCmd. However, this means that attempting to click on a link in the terminal (for example, an error message referencing the offending line in your source code) requires the use of the other shortcut (Alt + Click).
Since it seems that Linux and MacOS have various strange behaviors when Alt + Clicking in a terminal, you are suggesting we switch back to the default "editor.multiCursorModifier": "alt". Now we'll use Ctrl+Click / Cmd+Click to follow links in the Terminal, avoiding all that ^[[D^[[D^[[D^[[D nonsense that sometimes causes the terminal to hang.
For multi-selecting in the editor window, we'll have to get used to using Alt + Click for that, but in my opinion, that is better than having terminal hanging issues unexpectedly.
So to clarify what I originally posted to Daniel Imms (@Tyriar)... Alt+Click will still cause junk to fill the screen, regardless of the value of "editor.multiCursorModifier" setting. However, the above workaround means we don't need the Alt+Click anymore.
Alt+Click will still cause junk to fill the screen
Kenneth Johnson (@securedirective) it's a feature that's sending keys to move the terminal cursor to the position of the mouse cursor. It needs support in whatever program is running in the terminal though which is why you might see the ^[[D printed, we cannot detect this support though. The advice right now is to avoid alt clicking if it doesn't work in the program.
Daniel Imms (@Tyriar) could you clarify... Is this a feature in Linux that's doing it, and vscode is not able to see that it's happening? Or do you mean this is a feature in vscode to move the cursor, and vscode is not able to tell if the terminal shell supports it?
If things still don't seem right, please ensure you're on version 4f23418 of Insiders (today's or later - you can use Help: About in the command palette to check), and leave a comment letting us know what isn't working as expected.
bugIssue identified by VS Code Team member as probable bugconfirmedIssue has been confirmed by VS Code Team memberinsiders-releasedPatch has been released in VS Code InsidersterminalGeneral terminal issues that don't fall under another labelverifiedVerification succeeded
Activity
davatron5000 commentedon Jun 30, 2020
Having the same issue in WSL with Ubuntu 18.04 when alt+clicking any link.
Tyriar commentedon Jul 7, 2020
Looks like this is an issue where the alt+click feature (move cursor when clicking) is conflicting with links, only when
"editor.multiCursorModifier": "ctrlCmd"is used.securedirective commentedon Aug 14, 2020
This issue also occurs on MacOS, only with Opt+Click instead of Alt+Click.
I thought at first that this was related to the Opt+Click on a detected link in the terminal (since that is an Alt+Click on Windows/Linux). But this truly does occur when Opt+Clicking anywhere in the terminal while a
readcommand is waiting for input.Daniel Imms (@Tyriar) I can confirm that this occurs on my MacOS regardless of the value of
"editor.multiCursorModifier"setting.yulinfeng000 commentedon Aug 14, 2020
set
"terminal.integrated.macOptionIsMeta": truein setting.json , now the way you click url is cmd + click, and it wont happen againsecuredirective commentedon Aug 14, 2020
Cam (@yulinfeng000), nope, that only slightly changes the junk that is dumped into the Terminal, but it doesn't get rid of it...
With
"terminal.integrated.macOptionIsMeta": false(default):With
"terminal.integrated.macOptionIsMeta": true:yulinfeng000 commentedon Aug 14, 2020
emmm, you say is right, i just change a way to open url in vscode terminal to avoid echo ^[[D but not fix it , this also occurs in terminal.app, item.app if you use option + click.
by the way,my final setting as follows
(if

"editor.multiCursorModifier": "ctrlcmd", vscode still let you click url with option + click )securedirective commentedon Aug 14, 2020
Oh! That's a great observation, Cam (@yulinfeng000).... Alt+Click fills the terminal with junk even in the standard MacOS Terminal app and also in iTerm2.
Now, I am aware that Alexander Pushkov (@notpushkin) is originally reporting this for Ubuntu. I checked my Linux laptop (Fedora 31), and Alt+Click in the standard system terminal emulator does nothing. It only occurs in VSCode's terminal.
But this still makes me wonder if all of this is system-level issues, or perhaps terminal "emulator" issues, not really a VSCode issue. Hard to know. But the Microsoft devs would know.
securedirective commentedon Aug 14, 2020
As for your workaround, Cam (@yulinfeng000), thank you so much for that!!! I still don't see any change in VSCode's behavior when using
"terminal.integrated.macOptionIsMeta": true, but changing"editor.multiCursorModifier"definitely avoids the core issue.I hope you don't mind me describing in more detail...
"editor.multiCursorModifier"to bectrlCmd. However, this means that attempting to click on a link in the terminal (for example, an error message referencing the offending line in your source code) requires the use of the other shortcut (Alt + Click)."editor.multiCursorModifier": "alt". Now we'll use Ctrl+Click / Cmd+Click to follow links in the Terminal, avoiding all that ^[[D^[[D^[[D^[[D nonsense that sometimes causes the terminal to hang.securedirective commentedon Aug 14, 2020
So to clarify what I originally posted to Daniel Imms (@Tyriar)... Alt+Click will still cause junk to fill the screen, regardless of the value of "editor.multiCursorModifier" setting. However, the above workaround means we don't need the Alt+Click anymore.
Tyriar commentedon Sep 3, 2020
Kenneth Johnson (@securedirective) it's a feature that's sending keys to move the terminal cursor to the position of the mouse cursor. It needs support in whatever program is running in the terminal though which is why you might see the
^[[Dprinted, we cannot detect this support though. The advice right now is to avoid alt clicking if it doesn't work in the program.securedirective commentedon Sep 3, 2020
Daniel Imms (@Tyriar) could you clarify... Is this a feature in Linux that's doing it, and vscode is not able to see that it's happening? Or do you mean this is a feature in vscode to move the cursor, and vscode is not able to tell if the terminal shell supports it?
41 remaining items
securedirective commentedon Jan 19, 2021
Thanks, Daniel Imms (@Tyriar) and Megan Rogge (@meganrogge)! I'm really looking forward to being able to click links in the terminal again.
vscode-triage-bot commentedon Jan 22, 2021
This bug has been fixed in to the latest release of VS Code Insiders!
Alexander Pushkov (@notpushkin), you can help us out by commenting
/verifiedif things are now working as expected.If things still don't seem right, please ensure you're on version 4f23418 of Insiders (today's or later - you can use
Help: Aboutin the command palette to check), and leave a comment letting us know what isn't working as expected.Happy Coding!
notpushkin commentedon Jan 22, 2021
/verified