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

geometry in characters? #11

Open
codr1 opened this issue Sep 27, 2024 · 1 comment
Open

geometry in characters? #11

codr1 opened this issue Sep 27, 2024 · 1 comment

Comments

@codr1
Copy link

codr1 commented Sep 27, 2024

Is there a conversion between the number of characters and the length in pixels?
E,g, if I want an image that is 30 chars wide and 10 lines long - that would be say 240 x 160 pixels?

@j4james
Copy link

j4james commented Sep 27, 2024

On a real VT340, and genuine terminal emulators, the size of a character is 10x20 pixels (at least in 80 column mode), so 30 chars wide and 10 lines long will be 300 x 200 pixels.

However, in most modern terminals, the character size will depend on your font size, so you'll have to query the terminal to determine the size in pixels.

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

No branches or pull requests

2 participants