Bindings for the wrecked terminal graphics library
Project description
wrecked_bindings
Python bindings for the wrecked terminal interface library.
Installation
Can be installed through pip
pip install wrecked
Usage
import wrecked
# Instantiates the environment. Turns off input echo.
top_rect = wrecked.init()
# create a rectangle to put text in.
new_rect = top_rect.new_rect(width=16, height=5)
# Add a string to the center of the rectangle
new_rect.set_string(2, 3, "Hello World!")
# Make that rectangle blue
new_rect.set_bg_color(wrecked.BLUE)
# And finally underline the text of the rectangle
new_rect.set_underline_flag()
# Draw the environment
top_rect.draw()
# take down the environment, and turn echo back on.
wrecked.kill()
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
wrecked-1.0.21.tar.gz
(1.0 MB
view details)
File details
Details for the file wrecked-1.0.21.tar.gz.
File metadata
- Download URL: wrecked-1.0.21.tar.gz
- Upload date:
- Size: 1.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
33f930dd46fec5fc05c6688a09c9299d35854075a6be2817827154afca0d6727
|
|
| MD5 |
2a4481986325a9db00c0b344bc7f92fa
|
|
| BLAKE2b-256 |
d6e71547655ca47fab5e91519e884a16d77865fb17e715b6e03ef685cb64b403
|