pacman/src
Dave Reisner 620cddfc13 pacman/util.c: support terminals with unknown width
Add detection for stdout being attached to a tty device. When this check
fails, return a default width of 0, which callers interpret to mean
"don't wrap". Conversely, when our term ioctl suceeds but returns 0, we
interpret this to mean a tty with an unknown width (e.g., a serial
console), in which case we default to a sane value of 80.

Signed-off-by: Dave Reisner <d@falconindy.com>
2011-06-20 00:11:46 -05:00
..
pacman pacman/util.c: support terminals with unknown width 2011-06-20 00:11:46 -05:00
util Make pmdepend_t and pmdepmissing_t public 2011-06-16 11:57:33 -05:00