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.6-py2.py3-none-win_amd64.whl (699.9 kB view details)

Uploaded Python 2Python 3Windows x86-64

bearlibterminal-0.14.6-py2.py3-none-win32.whl (700.2 kB view details)

Uploaded Python 2Python 3Windows x86

bearlibterminal-0.14.6-py2.py3-none-manylinux1_x86_64.whl (444.5 kB view details)

Uploaded Python 2Python 3

bearlibterminal-0.14.6-py2.py3-none-manylinux1_i686.whl (433.7 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

File hashes

Hashes for bearlibterminal-0.14.6-py2.py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 528dcba5a3f059a5b2c0d2b1292b2af0f6dc319bedc1fa654a1b4af36ca3afca
MD5 7e9c8802376e70e166ea5933046998fc
BLAKE2b-256 b446a332f7290d27412623d67915c4e3c4b10f58ef16e7dc9f72617c4e857ff7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bearlibterminal-0.14.6-py2.py3-none-win32.whl
Algorithm Hash digest
SHA256 ae0d8808c061550f49d28004139b7e3090b2ebc055584adbc0f68bb24d31fcda
MD5 76015e2b75115b890c6789c9bcd2753e
BLAKE2b-256 befc20bef9ecf4301c1935b6e86a5ae3379e1354cb329fed2c8d2c9662d84445

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bearlibterminal-0.14.6-py2.py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 c5ac6431ae754bdea9969a7605ff54ea7f27ff62e2be8edce7e2e5df9b5ac42d
MD5 e22d19e6433ae67e0cb49bb32d36b020
BLAKE2b-256 20187b909bfec64a0738131686ac540e7e7938f19e7d9f88478590462928e3b2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bearlibterminal-0.14.6-py2.py3-none-manylinux1_i686.whl
Algorithm Hash digest
SHA256 42e4aa897ba0ab4b58ff1575bb81dfaebab9699f9c308e6b3003d367f1d9e836
MD5 e8cac820f24d432cc4bb29f05fd100db
BLAKE2b-256 4b191527a6567b5f889389c4893530ade7d3f4a0ef09f194b87fbd6427eae668

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