--- dstat.orig	2005-03-01 17:06:35.000000000 -0500
+++ dstat	2005-03-18 23:25:59.000000000 -0500
@@ -1251,7 +1251,10 @@
 
 	### 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'):
+	if sys.stdout.isatty():
+		if os.environ.get('TERM',None) not in ('ansi', 'linux', 'rxvt', 'screen', 'screen-w', 'xterm', 'xterm-color'):
+			op.color = False
+	else:
 		op.color = False
 		op.nolimit = True
 		op.update = False
