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.

Support for Extended Window Manager Hints

See original GitHub issue

When using xterm.js for Windows SAC sessions, the input line stays fixed in place without adjusting to the size of the terminal (screenshot below). This seems to be because xtermjs doesn’t seem to support a Esc + [18t control sequence, which is emitted by SAC to determine the screen size. Order of events is as follows:

  1. SAC emits ESC + [18t (\x1b[18t)
  2. The terminal emulator is expected to reply with ESC + [8;RRR;CCCt (\x1b[8;RRR;CCCt)
    • RRR is the number of rows, and CCC is the number of columns
    • This must be sent by the terminal emulator within 3 seconds

Looks like in order for xtermjs to support Windows SAC resizing, there will need to be support added for the ESC + [18t control sequence. Can this be added?

image

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:17 (12 by maintainers)

github_iconTop GitHub Comments

2reactions
CraigWiandcommented, Oct 26, 2018

I believe this can be done by executing the resize command and using the -s switch. Based upon my review of the resize code, that should issue a [18t as part of what the docs describe as Sun console escape sequences. This is also described in the Miscellaneous section of the doc.

The idea being, as Alfred describes above:

  1. resize -s emits ESC + [18t
  2. xtermjs replies with ESC + [8;RRR;CCCt
  • RRR is the number of rows, and CCC is the number of columns

The results should be visible via the response from resize and via a stty -a command run before and after.

1reaction
jerchcommented, Aug 24, 2019

@asinn826 Opened a PR (#2393) for this. There are several things to fiddle out before we can support it in a clean way. See PR description for more details.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Extended Window Manager Hints
This spec defines interactions between window managers, applications, and the utilities that form part of a desktop environment.
Read more >
Extended Window Manager Hints - Wikipedia
Extended Window Manager Hints, a.k.a. NetWM, is an X Window System standard for the communication between window managers and applications.
Read more >
Extended Window Manager Hints Support For FVWM
With these, FVWM can handle Extended Window Manager Hints from the freedesktop group. This allows, for example, running FVWM with KDE version >=2...
Read more >
Extended Window Manager Hints - GNOME Developer Center
This spec defines interactions between window managers, compositing managers, applications, and the utilities that form part of a desktop ...
Read more >
JWM EWMH Support - joewing.net
This is a list of properties that JWM supports from the Extended Window Manager Hints (EWMH). Root Window Properties. Atom, Supported? Notes. _NET_SUPPORTED ......
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