Skip to main content

Bindings for the wrecked terminal graphics library

Project description

wrecked_bindings

Python bindings for the wrecked terminal interface library.
PyPI - Downloads PyPI GitHub

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


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.20.tar.gz (855.3 kB view details)

Uploaded Source

File details

Details for the file wrecked-1.0.20.tar.gz.

File metadata

  • Download URL: wrecked-1.0.20.tar.gz
  • Upload date:
  • Size: 855.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.10

File hashes

Hashes for wrecked-1.0.20.tar.gz
Algorithm Hash digest
SHA256 fc7b2067833c3b9058f061edae22dc3b8844634395f5e16dacd83b0e215f3b82
MD5 5c3a3f0e03c19ec2f960bff28737e891
BLAKE2b-256 1ed2babd686222d906332686e211c98a7e7c81fc88165a7784cab177a64f6eb7

See more details on using hashes here.

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