def _set_term_title_xterm(title):
 sys.stdout.write(('\x1b]0;%s\x07' % title))

def _set_term_title_xterm ( title ) : sys . stdout . write ( ( '\x1b]0;%s\x07' % title ) )
change virtual terminal title in xterm-workalikes .