Skip to main content

Utilities for drawing and interactiveness at the terminal

Project description

This aims to be a Python library allowing using a text-terminal as a low-resolution graphics output, along with keyboard realtime reading, mouse events, and a couple utilities enough to enable using a text terminal to run simple 2D games.

The “noveau” factor is that it uses Unicode quarter-character block combinations to effectivelly enable 1/4 character “pixels” in the terminal. It also makes use of 24bit “true” color for text, not limitng itself to the 80’s 8 color palette for the terminal.

While at that, it does offer a great deal of flexibility to display and interface in a text-terminal, and may become an enabler of rich-interfaces for terminal based applications - think about a Python-only, modernized Curses library.

The idea is to keep this as a lightweight install - with no, or as little dependencies as possible.

![Messy screenshot with current capabilities](examples/screenshot_01.png) ![Graph plot output example](examples/screenshot_02.png)

Compatibility

For the time being this is being built in a Posix terminal and relies on ANSI scape sequences for all terminal manipulation. It should work in most Linux and Mac OS terminal applications (including non-X11, “native” terminals on Linux)

License

Terminedia is licensed under GNU’s LGPL 3.0 or later, meaning you are free to use it in whatver project you want, comercial or not, private or not - you are only required to contribute back any enhancements you make to this library itself. For details, please read acompanining “LICENSE” file.

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

terminedia-0.2.0.tar.gz (15.3 kB view hashes)

Uploaded Source

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