MCPcopy Index your code
hub / github.com/ipython/ipython / _restore_term_title_xterm

Function _restore_term_title_xterm

IPython/utils/terminal.py:80–91  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

78
79
80def _restore_term_title_xterm():
81 # Make sure the restore has at least one accompanying set.
82 global _xterm_term_title_saved
83 if not _xterm_term_title_saved:
84 warnings.warn(
85 "Expecting xterm_term_title_saved to be True, but is not; will not restore terminal title.",
86 stacklevel=1,
87 )
88 return
89
90 sys.stdout.write('\033[23;0t')
91 _xterm_term_title_saved = False
92
93
94if os.name == 'posix':

Callers

nothing calls this directly

Calls 2

warnMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…