Permalink
Browse files

Fix set_term_title when xterm represent itself as xterm-256color

  • Loading branch information...
1 parent ddde2e1 commit 9276998bf1765e9fa6d2b23d83808857d948fd98 @xeor xeor committed with Aug 26, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 IPython/utils/terminal.py
@@ -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

0 comments on commit 9276998

Please sign in to comment.