-
-
Notifications
You must be signed in to change notification settings - Fork 283
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
Use real terminal font size #55
Comments
that's a client sided syscall right? you won't be able to use that through ssh or mosh if I'm not mistaken. |
You can access it through SSH or Docker (with Carbonyl currently uses the same syscall Line 9 in 6b906b0
I should release both this and a |
It seems my original idea was more related to chafa, but by the moment, current algorythm is fine :-) |
Instead of have hardcoded values for the number of pixels of the font on screen, it's possible to get the real font size in pixels using the
ws_xpixel
andws_ypixel
values, between some other syscalls and tools, although they are poorly supported, but if they can be fetch, it's better to use the real values to do the calcs.https://stackoverflow.com/questions/42936926/ws-xpixel-and-ws-ypixel
The text was updated successfully, but these errors were encountered: