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

[Feature]: Support for CSI 14 #3002

Open
microo8 opened this issue Sep 22, 2022 · 7 comments · May be fixed by #2973
Open

[Feature]: Support for CSI 14 #3002

microo8 opened this issue Sep 22, 2022 · 7 comments · May be fixed by #2973

Comments

@microo8
Copy link

microo8 commented Sep 22, 2022

Feature description

CSI 14 is an escape code, that returns the screen size in pixels.

This feature would allow the running application to get the screen size, it is used mainly in sixel supporting apps, that need to scale the image before printing it out. This would be needed if this #2973 would me merged.

Another alternative is TIOCGWINSZ syscall.

Additional information

alacritty suports it:

alacritty/alacritty@cdf5e51

@microo8 microo8 changed the title [Feature]: [Feature]: Support for CSI 14 Sep 22, 2022
@MatanZ
Copy link
Contributor

MatanZ commented Sep 24, 2022

CSI 14 t and CSI 16 t are included in #2973.

@bropines
Copy link

I think I have a similar request, but I don't know anything about it at all. Here's from that discussion.
hzeller/timg#86

@MatanZ
Copy link
Contributor

MatanZ commented Sep 28, 2022

Can you elaborate on "not working"? It works in my testing:

[18:47:50:~]$ echo -e '\033[14t' ; cat

^[[4;1161;1056t

[18:48:22:~]$ echo -e '\033[16t' ; cat

^[[6;43;22t

[18:48:30:~]$

And also in a program I wrote that utilizes this escape sequence.

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 a pull request may close this issue.

4 participants
@microo8 @MatanZ @bropines and others