Skip to main content

A Python class for executing ANSI escape commands in the console.

Project description

EscFormatter

Description

This Python package provides a class named Esc that enables the execution of ANSI escape commands in the console. It offers functionalities for advanced text formatting, changing font colors in the console, applying text styles, and positioning the cursor.

Usage Example

from escformatter import esc

# Register cleanup to reset console styles and colors to default
esc.register_cleanup()

# Display 'Hello, World!' in red
print(esc.fg_red + 'Hello, World!')

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

escformatter-0.1.1.3-py3-none-any.whl (5.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