Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Actually returning ret might be good. | Rob Landley | 2005-09-05 | 1 | -0/+2 |
| | |||||
* | Bernhard Fischer suggested that get_terminal_width_height() should return | Rob Landley | 2005-09-01 | 1 | -22/+7 |
| | | | | | | the result of the ioctl so callers can tell if we have a tty. (0 means we have a tty, nonzero means the ioctl couldn't find size info and we fake 80x24. Really we should fake 80x25, but oh well...) | ||||
* | Brian Pomerantz writes: | Eric Andersen | 2004-03-23 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | I've noticed a bug in the "autowidth" feature more, and is probably in others. The call to the function get_terminal_width_height() passes in a file descriptor but that file descriptor is never used, instead the ioctl() is called with 0. In more_main() the call to get_terminal_width_height() passes 0 as the file descriptor instead of fileno(cin). This isn't a problem when you more a file (e.g. "more /etc/passwd") but when you pipe a file to it (e.g. "cat /etc/passwd | more") the size of the terminal cannot be determined because file descriptor 0 is not a terminal. The fix is simple, I've attached a patch for more.c and get_terminal_width_height.c. BAPper | ||||
* | Remove trailing whitespace. Update copyright to include 2004. | Eric Andersen | 2004-03-15 | 1 | -2/+2 |
| | |||||
* | Be entirely consistant when using ioctl(0, TIOCGWINSZ, &winsize) | Eric Andersen | 2003-09-15 | 1 | -0/+66 |
to ensure proper fallback behavior on, i.e. serial consoles. -Erik |