pacman/src/pacman
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
..
.gitignore Remove pacman.static build from build files 2008-07-15 19:05:24 -05:00
Makefile.am Let pacman specify GnuPG's home directory. 2011-03-23 03:22:36 -05:00
callback.c pacman/util.c: support terminals with unknown width 2011-06-20 00:11:46 -05:00
callback.h Mark log callback format string const 2011-02-24 09:38:59 -06:00
conf.c API: change 'signaturedir' to 'gpgdir' 2011-06-15 12:02:29 -05:00
conf.h Revamp pacman setup code to handle new alpm initialize routine 2011-06-07 11:37:05 -05:00
database.c Move pm_errno onto the handle 2011-06-13 19:38:38 -05:00
deptest.c Require handle argument to all alpm_option_(get|set)_*() methods 2011-06-09 14:24:45 -05:00
package.c Require handle argument to all alpm_option_(get|set)_*() methods 2011-06-09 14:24:45 -05:00
package.h Make dump_pkg_full a little less insane 2011-04-22 17:08:33 -05:00
pacman.c API: change 'signaturedir' to 'gpgdir' 2011-06-15 12:02:29 -05:00
pacman.h Make config parsing a two-part affair 2011-05-05 11:48:12 -05:00
query.c Make pmgrp_t public 2011-06-16 11:58:04 -05:00
remove.c Make pmgrp_t public 2011-06-16 11:58:04 -05:00
sync.c Make pmgrp_t public 2011-06-16 11:58:04 -05:00
upgrade.c Make pmdepend_t and pmdepmissing_t public 2011-06-16 11:57:33 -05:00
util.c pacman/util.c: support terminals with unknown width 2011-06-20 00:11:46 -05:00
util.h pacman/util.c: support terminals with unknown width 2011-06-20 00:11:46 -05:00