Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 143892 | Differences between
and this patch

Collapse All | Expand All

(-)lexa.py.orig (-1 / +1 lines)
Lines 12-22 Link Here
12
# Try to set color escapes which work across various types of terminals.
12
# Try to set color escapes which work across various types of terminals.
13
# Problem: we need to wrap the escapes in \001..\002 for long lines not to
13
# Problem: we need to wrap the escapes in \001..\002 for long lines not to
14
# wrap in random ways, but \001,\002 generate on-screen garbage in old
14
# wrap in random ways, but \001,\002 generate on-screen garbage in old
15
# xterms and Emacs terminals.
15
# xterms and Emacs terminals.
16
try:
16
try:
17
    if os.environ['TERM'] in ['emacs', 'dumb', 'eterm', 'xterm']:
17
    if os.environ['TERM'] in ['emacs', 'dumb', 'eterm', 'xterm', 'xterm-color']:
18
        enabled = 'no'
18
        enabled = 'no'
19
    else:
19
    else:
20
        enabled = 'yes'
20
        enabled = 'yes'
21
except: # Windows doesn't set $TERM
21
except: # Windows doesn't set $TERM
22
    enabled = 'no'
22
    enabled = 'no'

Return to bug 143892