Color and format text in the console
Project description
TermiText
Color and format text you print in the terminal, or create text animations!
Here are examples on how to use TermiText:
from termitext import *
#--------------------TEXT MODIFICATION
#Print green text with orange highlight
print(color("Hello world!", color = "green", highlight = "orange"))
#Print on the same line
slprint("This text is all ")
slprint(" on the same line!")
#Print bold text
print(format("Hello world!", style = "bold"))
#Clear the terminal
clear()
#Print one character at a time with 1 second between each character
slowprint("Hello", 1)
#--------------------TEXT ANIMATIONS
#Create an animation with 0.5 seconds between each frame
animation.create("myAnimation", 0.5)
#Add frames to the animation
animation.frame("myAnimation", "frame1")
animation.frame("myAnimation", "frame2")
#Play the animation
animation.play("myAnimation")
LIST OF COLORS:
- Text: lightred, red, orange, yellow, lightgreen, green, lightcyan, cyan, lightblue, blue, pink, purple, black, darkgrey, lightgrey
- Highlight: red, orange, green, cyan, blue, purple, black, lightgrey
LIST OF FORMATS:
- Styles: bold, underline, strikethrough, invisible, reverse, disable
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 Distribution
TermiText-0.2.0.tar.gz
(3.4 kB
view details)
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 TermiText-0.2.0.tar.gz.
File metadata
- Download URL: TermiText-0.2.0.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.5 CPython/3.8.10 Linux/5.4.0-1044-gcp
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3ce385b9da779e8046e6474f0b24e2f0c681e928e0de6192395687fc05a3fa6c
|
|
| MD5 |
a74c5515e456f6bec5f21594fcc3229b
|
|
| BLAKE2b-256 |
049ef439ea21e978ad38d163c7000f55db544cbfb342eb560a20ddc9c17a7bae
|
File details
Details for the file TermiText-0.2.0-py3-none-any.whl.
File metadata
- Download URL: TermiText-0.2.0-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.5 CPython/3.8.10 Linux/5.4.0-1044-gcp
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8b4bf5ae0cf1e941a1676adbf6665c129c657a8fc6ddf19df9ea38d9e46672c4
|
|
| MD5 |
ec391ef60c5debd60e63484e37371c73
|
|
| BLAKE2b-256 |
2d1ed989d324cb314eed8f916c8f156f41b92646e915bef139a4100998343eff
|