Change virtual terminal title in xterm-workalikes
(title)
| 63 | |
| 64 | |
| 65 | def _set_term_title_xterm(title): |
| 66 | """ Change virtual terminal title in xterm-workalikes """ |
| 67 | # save the current title to the xterm "stack" |
| 68 | sys.stdout.write('\033[22;0t') |
| 69 | sys.stdout.write('\033]0;%s\007' % title) |
| 70 | |
| 71 | |
| 72 | def _restore_term_title_xterm(): |