xtermjs / xterm.js

A terminal for the web
https://xtermjs.org/
MIT License
16.99k stars 1.59k forks source link

Vscode sending "\n" instead of "^J" with "\u000A"? #5028

Closed tmpm697 closed 2 months ago

tmpm697 commented 2 months ago

Details

Steps to reproduce

you can produce this issue via this issue: https://github.com/microsoft/vscode/issues/210121#issuecomment-2053468201

basically when u try to map cmd+j to ctrl+j in vscode's terminal, vscode or xterm.js seems to send \n instead of ctrl+j

so how to instruct vscode that user intend to send ^j instead of \n when mapping?

Tyriar commented 2 months ago

Discussion in the vscode issue