question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't select using `option` in terminal with a mouse mode program running

See original GitHub issue

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.72.2
  • OS Version: 12.16.1

Steps to Reproduce:

  1. Run less --mouse foo.txt
  2. Try to select text by holding option, this works in iTerm2 but not in VS Code’s integrated terminal.

Recording 2022-10-30 at 12 16 47

Recording 2022-10-30 at 12 19 23 (1)

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
Tyriarcommented, Dec 8, 2022

LogService.ts:60 xterm.js: sending data "�OA�OA�OA�OA�OA�OA�OA�OC�OC�OC�OC�OC�OC�OC�OC�OC�OC�OC�OC�OC�OC�OC�OC�OC�OC�OC�OC�OC�OC�OC�OC" (93) [27, 79, 65, 27, 79, 65, 27, 79, 65, 27, 79, 65, 27, 79, 65, 27, 79, 65, 27, 79, 65, 27, 79, 67, 27, 79, 67, 27, 79, 67, 27, 79, 67, 27, 79, 67, 27, 79, 67, 27, 79, 67, 27, 79, 67, 27, 79, 67, 27, 79, 67, 27, 79, 67, 27, 79, 67, 27, 79, 67, 27, 79, 67, 27, 79, 67, 27, 79, 67, 27, 79, 67, 27, 79, 67, 27, 79, 67, 27, 79, 67, 27, 79, 67, 27, 79, 67, 27, 79, 67, 27, 79, 67]

Oh I know what’s happening here, the option+click is trying to move the cursor. To workaround this you should set terminal.integrated.altClickMovesCursor to false. I think this is a bug upstream where we should be ignoring terminal.integrated.altClickMovesCursor if terminal.integrated.macOptionClickForcesSelection is set AND mouse events are enabled in the terminal.

0reactions
segevfinercommented, Dec 8, 2022

Let me know if I can help

Read more comments on GitHub >

github_iconTop Results From Across the Web

Tmux mouse-mode on does not allow to select text with mouse
Notes for OS X: In iTerm, use Option instead of Shift . In Terminal.app, use Fn . Share.
Read more >
Can't use cursor select in cmd or atom - windows 10
First: run DISM and SFC: (1) Open cmd.exe with Run as Administrator. (2) DISM.exe /Online /Cleanup-image /StartComponentCleanup.
Read more >
Selecting text in the terminal without using the mouse
Selecting text in the terminal without using the mouse · 1. You mean Ctrl-Shift-Home? · Shift-Home copies to the beginning of the line....
Read more >
Getting back old copy paste behaviour in tmux, with mouse
Copy the text: select the text and press mouse left-button with shift key press too. Paste the text with shift key + middle-button....
Read more >
Selecting text with mouse not working. - Microsoft Community
As I understand that you unable to select the text with mouse is not working. 1. What is the make and the model...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found