Skip to main content

A simple Windows Terminal ANSI Escape Code Package

Project description

License: CC0-1.0 license

HexHue

Class 'Text' Usage
Regular Text Colors
Text.GRAY # Changes the color of the text to gray
Text.GREY # Changes the color of the text to gray
Text.RED # Changes the color of the text to red
Text.GREEN # Changes the color of the text to green
Text.YELLOW # Changes the color of the text to yellow
Text.BLUE # Changes the color of the text to blue
Text.MAGENTA # Changes the color of the text to magenta
Text.CYAN # Changes the color of the text to cyan
Text.WHITE # Changes the color of the text to white
Lighter Text Colors
Text.LIGHT_GRAY # Changes the color of the text to light gray
Text.LIGHT_GREY # Changes the color of the text to light gray
Text.LIGHT_RED # Changes the color of the text to light red
Text.LIGHT_GREEN # Changes the color of the text to light green
Text.LIGHT_YELLOW # Changes the color of the text to light yellow
Text.LIGHT_BLUE # Changes the color of the text to light blue
Text.LIGHT_MAGENTA # Changes the color of the text to light magenta
Text.LIGHT_CYAN # Changes the color of the text to light cyan
Text.LIGHT_WHITE # Changes the color of the text to light white
Reset Text Colors
Text.RESET # Changes the color of the text to normal
Class 'Back' Usage
Regular Back Colors
Back.GRAY # Changes the background color of the text to gray
Back.GREY # Changes the background color of the text to gray
Back.RED # Changes the background color of the text to red)
Back.GREEN # Changes the background color of the text to green
Back.YELLOW # Changes the background color of the text to yellow
Back.BLUE # Changes the background color of the text to blue
Back.MAGENTA # Changes the background color of the text to magenta
Back.CYAN # Changes the background color of the text to cyan
Back.WHITE # Changes the background color of the text to white
Lighter Back Colors
Back.LIGHT_RED # Changes the background color of the text to light red
Back.LIGHT_GREEN # Changes the background color of the text to light green
Back.LIGHT_YELLOW # Changes the background color of the text to light yellow
Back.LIGHT_BLUE # Changes the background color of the text to light blue
Back.LIGHT_MAGENTA # Changes the background color of the text to light magenta
Back.LIGHT_CYAN # Changes the background color of the text to light cyan
Back.LIGHT_WHITE # Changes the background color of the text to light white
Reset Back Colors
Back.RESET # Changes the background color of the text to normal
Class 'Type' Usage
Type.BOLD # Changes the format of the text to bold
Type.SEMI_BOLD # Changes the format of the text to semi bold
Type.NORMAL # Changes the format of the text to normal
Class 'Hex' Usage
Hex.RESET_ALL # Changes the format, text color, and background color to their default settings
Hex.NEW_LINE # Creates a newline character, indicating that a new line should begin at that point
# Hex.hex(hex_color_code) changes the color ONLY the text to any color provided it's supported in the Windows terminal ANSI color code table.
# Can be used with or without the '#'
# Examples:
Hex.hex('#ff0000') # Changes the text color to red
Hex.hex('ff0000') # Changes the text color to red

License

No Copyright

The person who associated a work with this deed has dedicated the work to the public domain by waiving all of his or her rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission. See Other Information below.

In no way are the patent or trademark rights of any person affected by CC0, nor are the rights that other persons may have in the work or in how the work is used, such as publicity or privacy rights. Unless expressly stated otherwise, the person who associated a work with this deed makes no warranties about the work, and disclaims liability for all uses of the work, to the fullest extent permitted by applicable law. When using or citing the work, you should not imply endorsement by the author or the affirmer.

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

HexHue-0.0.2.tar.gz (3.3 kB view hashes)

Uploaded Source

Built Distribution

HexHue-0.0.2-py3-none-any.whl (3.4 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