Skip to content

Add windowOptions to xtermTerminal to allow ESC [18t to work#209310

Merged
Tyriar merged 1 commit intomicrosoft:mainfrom
mmastrac:main
Apr 2, 2024
Merged

Add windowOptions to xtermTerminal to allow ESC [18t to work#209310
Tyriar merged 1 commit intomicrosoft:mainfrom
mmastrac:main

Conversation

@mmastrac
Copy link
Contributor

@mmastrac mmastrac commented Apr 2, 2024

Fixes #209309 by allowing the three supported windowOptions query targets in xterm.js.

Test:

  1. Open a new terminal
  2. Type echo -e "\x1b[18t"
  3. Look for the printed escape codes

@mmastrac
Copy link
Contributor Author

mmastrac commented Apr 2, 2024

@Tyriar would you be able to take a look at this? I think it's pretty straightforward.

Copy link
Member

@Tyriar Tyriar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

This option is disabled by default for security reasons, but I reviewed what gets sent from xterm.js and all looks fine as it doesn't contain arbitrary strings, only numbers and the possibility of undefined.

@Tyriar Tyriar requested a review from meganrogge April 2, 2024 14:25
@Tyriar Tyriar self-assigned this Apr 2, 2024
@Tyriar Tyriar added this to the April 2024 milestone Apr 2, 2024
@Tyriar Tyriar enabled auto-merge April 2, 2024 14:32
@Tyriar Tyriar merged commit 8ef2d1d into microsoft:main Apr 2, 2024
@microsoft microsoft locked and limited conversation to collaborators Jun 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

xterm.js supports escape-code window size reporting, but vs.code does not

3 participants