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
Release history Release notifications | RSS feed
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
Close
Hashes for escformatter-0.1.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ee78f113d18e6a9517b2070f34882fc04a4fb609cbdea76ceed95f4cbbb1531 |
|
MD5 | 770b3119348cdbb6aa621f5daeee1d83 |
|
BLAKE2b-256 | b7b61e7945001340b9166ec74898852ca0e377a7c1885bd227f806fa36dc7e98 |