def _set_term_title_xterm(title):
    sys.stdout.write('\033]0;%s\007' % title)
Change virtual terminal title in xterm-workalikes
dataset/ETHPy150Open ipython/ipython-py3k/IPython/utils/terminal.py/_set_term_title_xterm