-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
termsize::get()
returns (0, 0) when building for release
#19
Comments
@redpenguinyt Although I'm not an owner of this repo, I want to put my two cents in. I have the same issue on macOS, and found that the following commit a.k.a. rust-lang/rust#120055 (stable as of Rust 1.78) introduced this issue, using cargo-bisect-rustc. Since the change was significant (LLVM 17→18) I'm unsure how to proceed for any fix, but I found the following workarounds.
Hope this helps. Thanks! |
Hi folks. Someone had kindly contributed a pull request that I still own a crate version publish for that might address this #18 |
Hi! I noticed that PR #18 got merged in. @softprops any chance it might be getting published to Cargo soon? |
The function is erroneously returnin zero See softprops/termsize#19 for details
Hi, would highly appreciate a Thank you |
|
Amazing, thank you. |
currently running arch linux with zsh as the shell, and finding this to be an issue in both the kitty terminal and vscode's built in terminal. the following program returns my actual terminal size when building with
cargo build
and (0, 0) when building withcargo build --release
:this issue is present on all versions of termsize, though only a few months ago this wasnt a problem
The text was updated successfully, but these errors were encountered: