[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#282790: dpkg -l: use the terminfo to get the number of columns (if COLUMNS unset)

Package: dpkg
Version: 1.10.25
Severity: wishlist

If COLUMNS is not set, "dpkg -l" assumes 80 columns. As COLUMNS is not
a standard environment variable (it may be a shell variable, but isn't
exported by default), this is the case by default in practice. In this
case, dpkg should use the terminfo to determine the number of columns.
Well, it currently seems to do this only when attached to a terminal or
something like that. But it should do this whenever TERM is defined, so
that a pipe to less or grep (for instance) can be used.

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.9-dixsept
Locale: LANG=POSIX, LC_CTYPE=en_US.ISO8859-1 (charmap=ISO-8859-1)

Versions of packages dpkg depends on:
ii  dselect                     1.10.25      a user tool to manage Debian packa
ii  libc6                       2.3.2.ds1-18 GNU C Library: Shared libraries an

-- no debconf information

Reply to: