BearLibTerminal is a pseudoterminal window library
Project description
About
BearLibTerminal is a library that creates a terminal-like window facilitating flexible textual output and uncomplicated input processing.
A lot of roguelike games intentionally use asketic textual or pseudographic visual style. However, native output via the command line interface ususally have a few annoying shortcomings like low speed or palette and font restrictions. Using an extended character set (several languages at once or complicated pseudographics) may also be tricky. BearLibTerminal solves that by providing it’s own window with a grid of character cells and simple yet powerful API for configuration and textual output.
Online documentation: http://foo.wyrd.name/en:bearlibterminal:reference
Source code and issue tracker: https://bitbucket.org/cfyzium/bearlibterminal
Discussion forum: http://forums.roguetemple.com/index.php?topic=3896.0
Installation
Use pip:
pip install bearlibterminal
This will install everything necessary to use BearLibTerminal from Python, both the wrapper and the library binary.
from bearlibterminal import terminal
terminal.open()
terminal.printf(2, 1, "Hello, world!")
terminal.refresh()
while terminal.read() != terminal.TK_CLOSE:
pass
terminal.close()
Requirements
Python 2.7+ or 3.x
License
BearLibTerminal is distributed under the MIT license.
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 Distributions
Built Distributions
Hashes for bearlibterminal-0.15.6-py2.py3-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc072dee97c8625a78a3c037e3f2d58d1254fd723ba5c2752d250cab1d2b8ab8 |
|
MD5 | 05ec1196f756398f7c907900249cb19b |
|
BLAKE2b-256 | 34e26b530c464fd61acfce11e06162e5d57b88dcc52e1dd28f011c6839f107bf |
Hashes for bearlibterminal-0.15.6-py2.py3-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f618c45277b03796fead904688b4658c649cf25a6fa3bb9cbec33e6ee26432a |
|
MD5 | b75e7167edb32962f202fc019755239c |
|
BLAKE2b-256 | 846f681414b17dd1c830d5d0a06da4a7fe15e4a3203f4bfb32d8ca79f1618d3a |
Hashes for bearlibterminal-0.15.6-py2.py3-none-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec21286864a241098ca466621e9a389496ecab8de7b6a8b6a1731f4b3884e04d |
|
MD5 | 20ff7c659ae36a20da1430aa48c206ab |
|
BLAKE2b-256 | 37f5177b9203f0c27a9cead287babce5e125009e660fe605f2fe19f5e7e4dce5 |
Hashes for bearlibterminal-0.15.6-py2.py3-none-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec10c12bd69fdfb398330712cf2431add859edfa4cc104601dc7eddb8d9721fc |
|
MD5 | df632a12a279735936b3ec13fecdaaec |
|
BLAKE2b-256 | 40ed7105e6ecea1ff4c63b7657e658404660f3008e233798e52c405311e4a714 |
Hashes for bearlibterminal-0.15.6-py2.py3-none-macosx_10_9_universal.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7d2623654ca7644afc7305a3f839c807582a4db9a310d5b81e61868fe28f2aa |
|
MD5 | eb585c16c4aaf862f8ffe149cc53a244 |
|
BLAKE2b-256 | a1d3c4f7cded38d899bb19162ca4bdd1eb9eb3e2619672cecb2e452d34600b1b |