Skip to main content

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!")
while True:
    terminal.refresh()
    if terminal.read() == terminal.TK_CLOSE:
        break
terminal.close()

Requirements

Python 2.7+ or 3.x

License

BearLibTerminal is distributed under the MIT license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

bearlibterminal-0.14.5-py2.py3-none-win_amd64.whl (699.9 kB view details)

Uploaded Python 2Python 3Windows x86-64

bearlibterminal-0.14.5-py2.py3-none-win32.whl (700.1 kB view details)

Uploaded Python 2Python 3Windows x86

bearlibterminal-0.14.5-py2.py3-none-manylinux1_x86_64.whl (444.4 kB view details)

Uploaded Python 2Python 3

bearlibterminal-0.14.5-py2.py3-none-manylinux1_i686.whl (433.3 kB view details)

Uploaded Python 2Python 3

File details

Details for the file bearlibterminal-0.14.5-py2.py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for bearlibterminal-0.14.5-py2.py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 2a52282673c65885c22298b1e98672e1f509c20e9011a2746d4bca8c22caa7df
MD5 3bd5201567811a9c11b360c2e13b5a89
BLAKE2b-256 62249dfcc9845480e8c37fcd54523186ea5e4e27a24f73ef9838849db049a925

See more details on using hashes here.

File details

Details for the file bearlibterminal-0.14.5-py2.py3-none-win32.whl.

File metadata

File hashes

Hashes for bearlibterminal-0.14.5-py2.py3-none-win32.whl
Algorithm Hash digest
SHA256 b8a3990e874471001158cbc9bab22cb5720d1878c6882d9d423f30c480b44348
MD5 f7cd87fbd3c071d96687f441029def84
BLAKE2b-256 76f5520d53c56ac22f198881887ff8c73a5f58c41cb00f1d34adfaa472bf9262

See more details on using hashes here.

File details

Details for the file bearlibterminal-0.14.5-py2.py3-none-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for bearlibterminal-0.14.5-py2.py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 f90ae9002415065dd1c460562b0f9552eb0b8525eb9f861cfa95f1dbf879c5ee
MD5 b6e34d3b7f8fbf3cd8d83534f17507dc
BLAKE2b-256 9519e56280351931bd83d954f34d23bd93952cd2755ae669dcdd8a60dd5ec699

See more details on using hashes here.

File details

Details for the file bearlibterminal-0.14.5-py2.py3-none-manylinux1_i686.whl.

File metadata

File hashes

Hashes for bearlibterminal-0.14.5-py2.py3-none-manylinux1_i686.whl
Algorithm Hash digest
SHA256 c2b8dc7ff51a39dc45f37f30c7206f7a0e0d35ce97888c7d80e30abd164f07ff
MD5 7c2ee1afdd440ce9234841721c491281
BLAKE2b-256 bb1c080b93fb9739e7f0a75b069192748bc8e4e499cc2a72b9e47d14ba936b98

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page