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

Getting pixel width and height. #6

Open
meh opened this issue Dec 26, 2016 · 0 comments
Open

Getting pixel width and height. #6

meh opened this issue Dec 26, 2016 · 0 comments

Comments

@meh
Copy link

meh commented Dec 26, 2016

Is there a chance of getting expose the x and y values from winsize?

Those are used by terminals to tell the width and height in pixels, that can in turn be used with rows and cols to get the dimensions of a cell in pixels, which is incredibly useful when dealing with sixels.

I looked at the Windows documentation and I'm not sure there's a way to get the same on it.

A good alternative would be to expose them as Option<u16> since some terminals set those values to 0, which would make it simple to behave optionally on them.

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

1 participant