/usr/lib/imh-ultrastack-common/venv/lib/python3.13/site-packages/wcwidth
NameSizeModeActions
__pycache__/-0755rm
bisearch.py8120644editdlrm
control_codes.py15790644editdlrm
escape_sequences.py30970644editdlrm
grapheme.py133820644editdlrm
py.typed00644editdlrm
sgr_state.py124290644editdlrm
table_ambiguous.py119000644editdlrm
table_grapheme.py1428990644editdlrm
table_mc.py139930644editdlrm
table_vs16.py68900644editdlrm
table_wide.py89740644editdlrm
table_zero.py256420644editdlrm
textwrap.py289970644editdlrm
unicode_versions.py5410644editdlrm
wcwidth.py411270644editdlrm
__init__.py17930644editdlrm
Edit: /usr/lib/imh-ultrastack-common/venv/lib/python3.13/site-packages/wcwidth/control_codes.py (1579B)
""" Control character sets for terminal handling. This module provides the control character sets used by the width() function to handle terminal control characters. """ # Illegal C0/C1 control characters. # These raise ValueError in 'strict' mode. ILLEGAL_CTRL = frozenset( chr(c) for c in ( list(range(0x01, 0x07)) + # SOH, STX, ETX (^C), EOT (^D), ENQ, ACK list(range(0x10, 0x1b)) + # DLE through SUB (^Z) list(range(0x1c, 0x20)) + # FS, GS, RS, US [0x7f] + # DEL list(range(0x80, 0xa0)) # C1 control characters ) ) # Vertical movement control characters. # These raise ValueError in 'strict' mode (indeterminate horizontal position). VERTICAL_CTRL = frozenset({ '\x0a', # LF (line feed) '\x0b', # VT (vertical tab) '\x0c', # FF (form feed) }) # Horizontal movement control characters. # These affect cursor position and are tracked in 'strict' and 'parse' modes. HORIZONTAL_CTRL = frozenset({ '\x08', # BS (backspace) - cursor left 1 '\x09', # HT (horizontal tab) - advance to next tab stop '\x0d', # CR (carriage return) - cursor to column 0 }) # Terminal-valid zero-width control characters. # These are allowed in all modes (zero-width, no movement). ZERO_WIDTH_CTRL = frozenset({ '\x00', # NUL '\x07', # BEL (bell) '\x0e', # SO (shift out) '\x0f', # SI (shift in) }) # All control characters that need special handling (not regular printable). ALL_CTRL = ILLEGAL_CTRL | VERTICAL_CTRL | HORIZONTAL_CTRL | ZERO_WIDTH_CTRL | {'\x1b'}