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

Implement terminal CSI reporting of window and cell pixel size #9

Merged
merged 1 commit into from
Jun 11, 2024

Conversation

fornwall
Copy link
Collaborator

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

Also stub android.util.Base64 in terminal tests and removed unused throw statements.

Based on work in termux/termux-app#2973 by @MatanZ - thanks!

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

Also stub android.util.Base64 in terminal tests and removed
unused throw statements.
@fornwall fornwall merged commit 3449e04 into main Jun 11, 2024
6 checks passed
@fornwall fornwall deleted the terminal-pixel-reporting branch June 11, 2024 09:19
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