Skip to content

Commit

Permalink
Fix set_term_title when xterm represent itself as xterm-256color
Browse files Browse the repository at this point in the history
  • Loading branch information
xeor authored and bfroehle committed Aug 30, 2012
1 parent ddde2e1 commit 9276998
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion IPython/utils/terminal.py
Expand Up @@ -81,7 +81,7 @@ def _set_term_title_xterm(title):

if os.name == 'posix':
TERM = os.environ.get('TERM','')
if (TERM == 'xterm') or (TERM == 'xterm-color'):
if TERM.startswith('xterm'):
_set_term_title = _set_term_title_xterm


Expand Down

0 comments on commit 9276998

Please sign in to comment.