Ask a question to get started
Enter to send•Shift+Enter new line
TerminalTitle( self, template: str, )
template
str
Format string that may use {app_name}, {thread_name}, {cwd}, and {branch}. Unknown fields, format specs, conversions, or unbalanced braces log a warning and use DEFAULT_TERMINAL_TAB_TITLE.
{app_name}
{thread_name}
{cwd}
{branch}
DEFAULT_TERMINAL_TAB_TITLE
Push the current title onto the terminal's title stack.
Does nothing while already started, when terminal escapes are disabled, or when neither stderr nor stdout is a TTY.
Write the rendered title when it differs from the last one.
The default template drops - {thread_name} while the thread has no name. Any template that renders blank shows the app name instead.
- {thread_name}
Rewrite the title on the next update even if it has not changed.
Programs that run while the app is suspended, such as an external editor, can set their own title without this instance knowing.
Pop the title pushed by start; later calls do nothing.
start
Push the terminal title on start, update it, and pop it on restore.