Set of variables and functions for text editing.
Project description
Text Editing
Set of variables and functions for text editing.
Python library by LassaInora.
Summary
- Links
- Contacts
- How to Enable ASCII Compatibility for Windows Terminal
- Character attributes
- Color
- Font
- Highlight
Links
Contacts
How to Enable ASCII Compatibility for Windows Terminal
- Start the "Registry Editor"
- Go to Computer -> HKEY_CURRENT_USER -> Console
- Right click on the right side -> New -> 32-bit DWORD Value
- Enter the name "VirtualTerminalLevel"
- Right click on the new key created -> Modify
- In the "Value data" field enter 1
Character attributes:
variables
- BOLD
- \033[1m
- NO_BOLD
- /!\ Not widely supported.
- \033[21m
- LOW_INTENSITY
- /!\ Not widely supported.
- \033[2m
- NO_LOW_INTENSITY
- \033[22m
- ITALIC
- /!\ Not widely supported. Sometimes treated as the reverse.
- \033[3m
- NO_ITALIC
- \033[23m
- UNDERLINE
- \033[4m
- NO_UNDERLINE
- \033[24m
- SLOWLY_FLASHING
- \033[5m
- NO_SLOWLY_FLASHING
- \033[25m
- RAPIDLY_FLASHING
- /!\ MS-DOS ANSI.SYS; Not widely supported.
- \033[6m
- NO_RAPIDLY_FLASHING
- \033[26m
- NEGATIVE
- \033[7m
- NO_NEGATIVE
- \033[27m
- HIDDEN
- /!\ Not widely supported.
- \033[8m
- NO_HIDDEN
- \033[28m
- STRIKETHROUGH
- /!\ Not widely supported.
- \033[9m
- NO_STRIKETHROUGH
- \033[29m
- STOP_ALL
- \033[0m
Color:
variables
- BLACK
- \033[30m
- RED
- \033[31m
- GREEN
- \033[32m
- YELLOW
- \033[33m
- BLUE
- \033[34m
- PURPLE
- \033[35m
- CYAN
- \033[36m
- WHITE
- \033[37m
- LIGHT_BLACK
- \033[90m
- LIGHT_RED
- \033[91m
- LIGHT_GREEN
- \033[92m
- LIGHT_YELLOW
- \033[93m
- LIGHT_BLUE
- \033[94m
- LIGHT_PURPLE
- \033[95m
- LIGHT_CYAN
- \033[96m
- LIGHT_WHITE
- \033[97m
- STOP
- \033[39m
functions
- get_rgb :
- Changes your color to the chosen value
- get_hex :
- Changes your color to the chosen value
Font:
/!\ Few terminals support this library.
variables
- ONE (The font given by this character is currently unknown.)
- \033[11m
- TWO (The font given by this character is currently unknown.)
- \033[12m
- THREE (The font given by this character is currently unknown.)
- \033[13m
- FOUR (The font given by this character is currently unknown.)
- \033[14m
- FIVE (The font given by this character is currently unknown.)
- \033[15m
- SIX (The font given by this character is currently unknown.)
- \033[16m
- SEVEN (The font given by this character is currently unknown.)
- \033[17m
- EIGHT (The font given by this character is currently unknown.)
- \033[18m
- NINE (The font given by this character is currently unknown.)
- \033[19m
- FRAKTUR
- \033[20m
- STOP
- \033[10m
Character attributes:
variables
- BLACK
- \033[40m
- RED
- \033[41m
- GREEN
- \033[42m
- YELLOW
- \033[43m
- BLUE
- \033[44m
- PURPLE
- \033[45m
- CYAN
- \033[46m
- WHITE
- \033[47m
- LIGHT_BLACK
- \033[100m
- LIGHT_RED
- \033[101m
- LIGHT_GREEN
- \033[102m
- LIGHT_YELLOW
- \033[103m
- LIGHT_BLUE
- \033[104m
- LIGHT_PURPLE
- \033[105m
- LIGHT_CYAN
- \033[106m
- LIGHT_WHITE
- \033[107m
- STOP
- \033[49m
functions
- get_rgb :
- Changes your color to the chosen value
- get_hex :
- Changes your color to the chosen value
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
text_editing-2.0.0.tar.gz
(17.3 kB
view hashes)
Built Distribution
Close
Hashes for text_editing-2.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 849dcd08ec0f1365c491a46728b3b0cb61f50176f9457f8fd8d5806006da41f1 |
|
MD5 | f9592a68eea8193d7d10ed5b21c51de6 |
|
BLAKE2b-256 | f51e11830301ddd393f3a097b95314d17ae96df709920f53138c9e9dafa368d8 |