rich.control
- class rich.control.Control(*codes)[source]
A renderable that inserts a control code (non printable but may move cursor).
- Parameters:
*codes (str) – Positional arguments are either a
ControlTypeenum or a tuple of ControlType and an integer parameter
- rich.control.escape_control_codes(text, _translate_table={7: '\\a', 8: '\\b', 11: '\\v', 12: '\\f', 13: '\\r'})[source]
Replace control codes with their “escaped” equivalent in the given text. (e.g. “” becomes “b”)