-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
ioctl
system call returning the wrong result
#7375
Comments
Apps must not rely on correct pixel propagation by TIOCGWINSZ. These values are intended to be 0 as a fallback Even worse - there are systems, that cannot tell a pixel size at all. So its not returning a wrong result here, but telling you - "dont know the right value". Would be nice to see this getting fixed yes, but imho thats an issue with node-pty. |
Is it a non-Unix system, like Windows? I'm developing a terminal file manager, and when I test its image preview feature, I find that I can't run it in Hyper. I need to get the actual pixel size to calculate the image's width and height -- I'm not sure how else can get it done. |
You can also use |
Are you on latest canary? |
I did a quick test on the latest canary, it supports |
No
Yes
Issue
Can't use
ioctl
to get the correct value ofxpixel
andypixel
:There are both zero, which causes some apps don't work.
.hyper.js contents
plugins
The text was updated successfully, but these errors were encountered: