Skip to main content

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


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


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)

Uploaded Source

Built Distribution

text_editing-2.0.0-py3-none-any.whl (16.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page