pytermgui.markup.style_maps
Dictionaries that define the terminal's styles & their unsetters.
1"""Dictionaries that define the terminal's styles & their unsetters.""" 2 3STYLES = { 4 "bold": "1", 5 "dim": "2", 6 "italic": "3", 7 "underline": "4", 8 "blink": "5", 9 "blink2": "6", 10 "inverse": "7", 11 "invisible": "8", 12 "strikethrough": "9", 13 "overline": "53", 14} 15 16REVERSE_STYLES = {value: key for key, value in STYLES.items()} 17 18CLEARERS = { 19 "/": "0", 20 "/bold": "22", 21 "/dim": "22", 22 "/italic": "23", 23 "/underline": "24", 24 "/blink": "25", 25 "/blink2": "26", 26 "/inverse": "27", 27 "/invisible": "28", 28 "/strikethrough": "29", 29 "/fg": "39", 30 "/bg": "49", 31 "/overline": "54", 32} 33 34REVERSE_CLEARERS = {value: key for key, value in CLEARERS.items()}