VT100 terminal escape codes for Python
Project description
pvt100
A fistful of ANSI terminal escape codes for your terminal.
They're actually just ANSI escape codes, but I like to call them pvt100 because it sounds cooler.
These are all grouped under the name "ANSI escape codes", which is a bit misleading, as ANSI is a standards body, and these are not all standards.
Usage
Easiest to just read pvt100.py to see what constants are available, as well as example.py in this repo.
import pvt100
print(f"{pvt100.color_bg_blue} Hello, world! {pvt100.style_reset}")
Installation
pip install pvt100
See also:
- https://gist.github.com/fnky/458719343aabd01cfb17a3a4f7296797
- https://bluesock.org/~willg/dev/ansi.html#ansicodes
For fun:
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pvt100-0.1.1.tar.gz.
File metadata
- Download URL: pvt100-0.1.1.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.11.0 Darwin/22.2.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3d26ee89cdb5515bd46d4665ca1d0b158352044730c2c06cbbf49d4166899074
|
|
| MD5 |
c250627572ab8c20a5f200f3508b4899
|
|
| BLAKE2b-256 |
5ce20d5ec27eefd4e5800cd2aa51e218cb6f21197318cab1ee2dfa2c128e71d6
|
File details
Details for the file pvt100-0.1.1-py3-none-any.whl.
File metadata
- Download URL: pvt100-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.11.0 Darwin/22.2.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8e7119ddab0218b07c698d33202bf520b754a77a26ac46ae7da2c908a41bbad6
|
|
| MD5 |
49758466f6e47fc54cb265a867a2ec90
|
|
| BLAKE2b-256 |
9fb415331927a4dda63dfc8535228741397f1d27b3bf1d8d4fa1477f87c7dcdc
|