-
Notifications
You must be signed in to change notification settings - Fork 6
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
Wrong value for TIOCGWINSZ? #3
Comments
If you are just interested in getting the size of the terminal you can run the built in You might be right about the |
I'm on Debian and have the exact same issue (the weird alignment is part of the problem, I assume):
I'm on TerminalUserInterfaces v0.2.0. |
This has been on my list of things to do and I haven't gotten to it yet. But I'll commit to setting up a Linux VM and debugging this this weekend! |
I made some changes in this commit that might resolve this issue: 4236b4c. I was able to set up a Ubuntu machine as well, so I will be able to do further testing shortly. |
Are you able to test with the latest version |
I've dropped the dependency on Termios, so this issue should now be resolved in this release: https://github.com/kdheepak/TerminalUserInterfaces.jl/releases/tag/v0.3.0 |
I use Linux here and I tried to use your library to get the size of my terminal in pixels. Maybe a bit overkill but I don't know a better way yet. When I try to get that size, I get the following error:
I then tried out
and got the same error. Finally I looked at the code and saw that
TerminalUserInterfaces.IOCTL.TIOCGWINSZ
is set to25
for linux systems. I looked upioctl.h
on the internet and saw that thereTIOCGWINSZ
is set to21523
. So I tried that out and it worked:So is it possible that the value for TIOCGWINSZ is incorrectly defined?
The text was updated successfully, but these errors were encountered: