Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
If ioctl TIOCGWINSZ returns 0,0 try to use env vars instead.
For some terminals (for example Emacs eshell/eterm) the ioctl with TIOCGWINSZ might falsely return 0 columns and 0 rows. If this happens we now try to use LINES and COLUMNS environment variables. Fixes crossterm-rs#891
- Loading branch information