Skip to main content

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

Metadata

Release files for jk_terminal_essentials 0.2026.5.29.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jk_terminal_essentials 0.2026.5.29.3
File Size Uploaded
jk_terminal_essentials-0.2026.5.29.3.tar.gz 10.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for jk_terminal_essentials 0.2026.5.29.3
File Interpreter ABI Platform
jk_terminal_essentials-0.2026.5.29.3-py3-none-any.whl Python 3 none any Details

Total release size: 22.8 kB

Release files / jk_terminal_essentials-0.2026.5.29.3.tar.gz

Download URL jk_terminal_essentials-0.2026.5.29.3.tar.gz
Size 10.0 kB
Tags Source
SHA-256 checksum
How to use checksums
952191f26da43808334001f6fdf69498b7e6b5b8c45d4860d0ab4295db245509
BLAKE2b-256 checksum
How to use checksums
58e59c70728a7d0e5306b38b4ac8b727e344f40c599d933898a5bc50550994a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.32.3

Release files / jk_terminal_essentials-0.2026.5.29.3-py3-none-any.whl

Download URL jk_terminal_essentials-0.2026.5.29.3-py3-none-any.whl
Size 12.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
99fab5f0d198ce8183283997a9c89f47f309cca9730158b06328d511e9249cdf
BLAKE2b-256 checksum
How to use checksums
b219bcb9cda8c7b96cc39a4f49fd6bbf9cee8fd18d3d59c7dff90eaecb2dd7c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.32.3
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page