MCPcopy
hub / github.com/Textualize/rich / title

Method title

rich/control.py:163–169  ·  view source on GitHub ↗

Set the terminal window title Args: title (str): The new terminal window title

(cls, title: str)

Source from the content-addressed store, hash-verified

161
162 @classmethod
163 def title(cls, title: str) -> "Control":
164 """Set the terminal window title
165
166 Args:
167 title (str): The new terminal window title
168 """
169 return cls((ControlType.SET_WINDOW_TITLE, title))
170
171 def __str__(self) -> str:
172 return self.segment.text

Callers 2

test_titleFunction · 0.80
set_window_titleMethod · 0.80

Calls

no outgoing calls

Tested by 1

test_titleFunction · 0.64