Package: dstat Version: 0.5.7-2 Severity: normal on line 1254 of dstat (0.5.7-2):
### Check terminal capabilities # if not sys.stdout.isatty() or not curses.wrapper(lambda \ # s:curses.has_colors()): if not sys.stdout.isatty() or os.environ.get('TERM',None) not in \ ('ansi', 'linux', 'rxvt', 'screen', 'screen-w', 'xterm'): op.color = False op.nolimit = True op.update = False When using xterm-color, dstat reverts back to uncolored, continuous (no headers) format. Also, I'm not exactly sure about the op.nolimit and op.update options, but it seems like those should be conditional on the "not sys.stdout.isatty()" test, and if stdout is a terminal, then op.color should be set. That way, even if I am on a non-color-capable terminal, the headers will get redisplayed once per screenful of stats. I realize that adding all color-capable terminals to the list would be a big maintenance headache, but it would be nice if any terminal ending in "-color" turned on op.color. Or, there could be a --color option to complement --nocolor. -- System Information: Debian Release: 3.1 APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.9.skas-2 Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=ANSI_X3.4-1968) Versions of packages dstat depends on: ii python 2.3.5-1 An interactive high-level object-o -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]