crossterm icon indicating copy to clipboard operation
crossterm copied to clipboard

If ioctl TIOCGWINSZ returns 0,0 try to use env vars instead.

Open swilde opened this issue 3 months ago • 6 comments

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

swilde avatar May 17 '24 15:05 swilde