|
Let us walk on the 3-isogeny graph
|
Data Structures | |
| class | Control |
Functions | |
| str | strip_control_codes (str text, Dict[int, None] _translate_table=_CONTROL_STRIP_TRANSLATE) |
| str | escape_control_codes (str text, Dict[int, str] _translate_table=CONTROL_ESCAPE) |
Variables | |
| list | STRIP_CONTROL_CODES |
| dict | _CONTROL_STRIP_TRANSLATE |
| dict | CONTROL_ESCAPE |
| dict | CONTROL_CODES_FORMAT |
| console = Console() | |
| str escape_control_codes | ( | str | text, |
| Dict[int, str] | _translate_table = CONTROL_ESCAPE |
||
| ) |
Replace control codes with their "escaped" equivalent in the given text.
(e.g. "\b" becomes "\\b")
Args:
text (str): A string possibly containing control codes.
Returns:
str: String with control codes replaced with their escaped version.
Definition at line 201 of file control.py.
References i.
| str strip_control_codes | ( | str | text, |
| Dict[int, None] | _translate_table = _CONTROL_STRIP_TRANSLATE |
||
| ) |
Remove control codes from text.
Args:
text (str): A string possibly contain control codes.
Returns:
str: String with control codes removed.
Definition at line 187 of file control.py.
References i.
|
protected |
Definition at line 22 of file control.py.
| console = Console() |
Definition at line 220 of file control.py.
| dict CONTROL_CODES_FORMAT |
Definition at line 34 of file control.py.
| dict CONTROL_ESCAPE |
Definition at line 26 of file control.py.
| list STRIP_CONTROL_CODES |
Definition at line 15 of file control.py.