--- lexa.py.orig 2006-07-29 17:41:52.129185732 +0200 +++ lexa.py 2006-07-29 17:42:16.392979488 +0200 @@ -12,11 +12,11 @@ # Try to set color escapes which work across various types of terminals. # Problem: we need to wrap the escapes in \001..\002 for long lines not to # wrap in random ways, but \001,\002 generate on-screen garbage in old # xterms and Emacs terminals. try: - if os.environ['TERM'] in ['emacs', 'dumb', 'eterm', 'xterm']: + if os.environ['TERM'] in ['emacs', 'dumb', 'eterm', 'xterm', 'xterm-color']: enabled = 'no' else: enabled = 'yes' except: # Windows doesn't set $TERM enabled = 'no'