Ticket #2 (new enhancement)
Allow fallbacks for getting the terminal size on POSIX
| Reported by: | judah | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Version: | 0.1 | Keywords: | |
| Cc: |
Description
Currently, the POSIX backend requires TIOCGWINSZ for ioctl to get the terminal size. On systems which don't have that, we should fall back to either:
- Use the terminfo capabilities termlines/termColumns
- Use the environmental variables LINES/COLUMNS
- Default to 80x24 if the above aren't defined, or if they're bad values (negative or too small)
This will require some configure-time hacks, though, so before I implement this I'll need to see a machine that actually doesn't provide TIOCGWINSZ (preferably one that I can test on).
Change History
Note: See
TracTickets for help on using
tickets.
