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
File details
Details for the file bearlibterminal-0.15.8-py2.py3-none-win_amd64.whl
.
File metadata
- Download URL: bearlibterminal-0.15.8-py2.py3-none-win_amd64.whl
- Upload date:
- Size: 702.8 kB
- Tags: Python 2, Python 3, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.9.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.10.1 urllib3/1.26.13 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb205a060c02e125439c94769ab3126a0375b0c140051b77a4d8b8c89d9697e5 |
|
MD5 | 97594b08426fbbd7ee3afb7eb49aad7f |
|
BLAKE2b-256 | de4fd6c633157a66ecfaac69137c41b8139af35834ee7b382943d7a9140274b3 |
File details
Details for the file bearlibterminal-0.15.8-py2.py3-none-win32.whl
.
File metadata
- Download URL: bearlibterminal-0.15.8-py2.py3-none-win32.whl
- Upload date:
- Size: 698.8 kB
- Tags: Python 2, Python 3, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.9.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.10.1 urllib3/1.26.13 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf6f5fbc16d50acab65c9daebbdfbb90df975cfd506ca09f97c8fac413c26523 |
|
MD5 | 811cffbf03c30dc88b99adc7a2a1a607 |
|
BLAKE2b-256 | 545ba369f2729bce188ad78600c247dafe9f84e902bc255eecbe9307d8f11bed |
File details
Details for the file bearlibterminal-0.15.8-py2.py3-none-manylinux2010_x86_64.whl
.
File metadata
- Download URL: bearlibterminal-0.15.8-py2.py3-none-manylinux2010_x86_64.whl
- Upload date:
- Size: 449.7 kB
- Tags: Python 2, Python 3, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.9.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.10.1 urllib3/1.26.13 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89f1183118fab4fa0bcc2a4031aa60fad89920ddd36c94dea2ada360c1ebb402 |
|
MD5 | 3cd16ee2080682f6cfa32ebd1151d3a4 |
|
BLAKE2b-256 | f3689250061bf46a3411fabb60446617aa58a093a933a75d90651efa6c0a5ae8 |
File details
Details for the file bearlibterminal-0.15.8-py2.py3-none-manylinux2010_i686.whl
.
File metadata
- Download URL: bearlibterminal-0.15.8-py2.py3-none-manylinux2010_i686.whl
- Upload date:
- Size: 477.6 kB
- Tags: Python 2, Python 3, manylinux: glibc 2.12+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.9.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.10.1 urllib3/1.26.13 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f28d24cb1265ea030c2164d57e7ed270b53dd41aab02b99df9267b00fe50d89c |
|
MD5 | c3c8e8b4396acf439add3b57d94c9742 |
|
BLAKE2b-256 | d3ad17170ece734c8da6b1473fa80e12f04850c407adb3fa90cf14ffa58da035 |
File details
Details for the file bearlibterminal-0.15.8-py2.py3-none-macosx_10_9_universal.whl
.
File metadata
- Download URL: bearlibterminal-0.15.8-py2.py3-none-macosx_10_9_universal.whl
- Upload date:
- Size: 392.1 kB
- Tags: Python 2, Python 3, macOS 10.9+ universal
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.9.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.10.1 urllib3/1.26.13 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ddf5168219ba72de3af97f50d3b2757c9a0e762d095bc0da0ca79c4bb94850cd |
|
MD5 | bea1bed278c7faa0c3eb97b385d8c3d2 |
|
BLAKE2b-256 | 50f4ad3b12dde68667c590935420e15d0a220e91dfe5cce61c8a1d6625bad72b |