Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added: Terminal CSI reporting of window and cell pixel size #4172

Merged
merged 1 commit into from
Sep 26, 2024

Conversation

fornwall
Copy link
Member

Implement the following CSI escape sequences from https://invisible-island.net/xterm/ctlseqs/ctlseqs.html:

CSI Ps ; Ps ; Ps t
[..]
Ps = 1 4 ⇒ Report xterm text area size in pixels.
Result is CSI 4 ; height ; width t
[..]
Ps = 1 6 ⇒ Report xterm character cell size in pixels.
Result is CSI 6 ; height ; width t

Extracted from changes in #2973 by @MatanZ and adopted to play well with the just merged #3098 (.ws_xpixel and .ws_ypixel values in winsize).

Implement the following CSI escape sequences from
https://invisible-island.net/xterm/ctlseqs/ctlseqs.html:

> CSI Ps ; Ps ; Ps t
> [..]
>    Ps = 1 4  ⇒  Report xterm text area size in pixels.
>    Result is CSI  4 ;  height ;  width t
> [..]
>    Ps = 1 6  ⇒  Report xterm character cell size in pixels.
>    Result is CSI  6 ;  height ;  width t

Extracted from changes in #2973
by @MatanZ and adopted to play well with the just merged #3098 (.ws_xpixel
and .ws_ypixel values in winsize).
@fornwall fornwall merged commit 0314259 into master Sep 26, 2024
4 checks passed
@fornwall fornwall deleted the csi-reporting-of-window-and-cell-pixel-size branch September 26, 2024 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant