crossterm
crossterm copied to clipboard
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 #891