Skip to main content

This module provides essential constants and information about the terminal. This module is intended for implementing CLI tools and other applications running in a terminal.

Project description

jk_terminal_essentials

Introduction

This module provides essential constants and information about the terminal. This module is intended for implementing CLI tools and other applications running in a terminal.

Information about this module can be found here:

How to use this module

Import this module

Please include this module into your application using the following code:

import jk_terminal_essentials as te

Colors

This module provides a variety of color constants. For example:

print(te.FGCOLOR_RED + "Error!" + te.STYLE_RESET)

The following colors are supported:

FGCOLOR_BLACK = "\x1b[30m"
FGCOLOR_RED = "\x1b[31m"
FGCOLOR_GREEN = "\x1b[32m"
FGCOLOR_YELLOW = "\x1b[33m"
FGCOLOR_BLUE = "\x1b[34m"
FGCOLOR_MAGENTA = "\x1b[35m"
FGCOLOR_CYAN = "\x1b[36m"
FGCOLOR_LIGHT_GRAY = "\x1b[37m"

FGCOLOR_DARK_GRAY = "\x1b[90m"
FGCOLOR_LIGHT_RED = "\x1b[91m"
FGCOLOR_LIGHT_GREEN = "\x1b[92m"
FGCOLOR_LIGHT_YELLOW = "\x1b[93m"
FGCOLOR_LIGHT_BLUE = "\x1b[94m"
FGCOLOR_LIGHT_MAGENTA = "\x1b[95m"
FGCOLOR_LIGHT_CYAN = "\x1b[96m"
FGCOLOR_WHITE = "\x1b[97m"

BGCOLOR_BLACK = "\x1b[40m"
BGCOLOR_RED = "\x1b[41m"
BGCOLOR_GREEN = "\x1b[42m"
BGCOLOR_YELLOW = "\x1b[43m"
BGCOLOR_BLUE = "\x1b[44m"
BGCOLOR_MAGENTA = "\x1b[45m"
BGCOLOR_CYAN = "\x1b[46m"
BGCOLOR_LIGHT_GRAY = "\x1b[47m"

BGCOLOR_DARK_GRAY = "\x1b[100m"
BGCOLOR_LIGHT_RED = "\x1b[101m"
BGCOLOR_LIGHT_GREEN = "\x1b[102m"
BGCOLOR_LIGHT_YELLOW = "\x1b[103m"
BGCOLOR_LIGHT_BLUE = "\x1b[104m"
BGCOLOR_LIGHT_MAGENTA = "\x1b[105m"
BGCOLOR_LIGHT_CYAN = "\x1b[106m"
BGCOLOR_WHITE = "\x1b[107m"

Check for Color Support

To check if the current terminal supports colors:

print(te.checkTerminalSupportsColors())

Author(s)

License

This software is provided under the following license:

  • Apache Software License 2.0

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

jk_terminal_essentials-0.2026.5.29.1.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jk_terminal_essentials-0.2026.5.29.1-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

Details for the file jk_terminal_essentials-0.2026.5.29.1.tar.gz.

File metadata

File hashes

Hashes for jk_terminal_essentials-0.2026.5.29.1.tar.gz
Algorithm Hash digest
SHA256 f31c4357d16cb285dc2d17ae535ee1bc8bdd812e3091e3e8d598efdae83ceba5
MD5 4fec5d98fb71f0373fa65e11019deb41
BLAKE2b-256 2b7df4ab83b6f8233e49b00e728b6621b817adb0fae95655f0aa5f40b160b513

See more details on using hashes here.

File details

Details for the file jk_terminal_essentials-0.2026.5.29.1-py3-none-any.whl.

File metadata

File hashes

Hashes for jk_terminal_essentials-0.2026.5.29.1-py3-none-any.whl
Algorithm Hash digest
SHA256 828fb1260efc6b1265cbdf13ec4b1ef71dccc171ed313364c935dca2c6a47a76
MD5 cea83c8bb7b6900348f214ef8f62e18b
BLAKE2b-256 aefea15128e75e3f18e454dd4d92ae23653b8deca18076fd169b3d73114cd97e

See more details on using hashes here.

Supported by

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