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

Uploaded Python 2Python 3Windows x86-64

bearlibterminal-0.14.8-py2.py3-none-win32.whl (701.8 kB view details)

Uploaded Python 2Python 3Windows x86

bearlibterminal-0.14.8-py2.py3-none-manylinux1_x86_64.whl (443.0 kB view details)

Uploaded Python 2Python 3

bearlibterminal-0.14.8-py2.py3-none-manylinux1_i686.whl (432.0 kB view details)

Uploaded Python 2Python 3

bearlibterminal-0.14.8-py2.py3-none-macosx_10_6_x86_64.whl (383.9 kB view details)

Uploaded Python 2Python 3macOS 10.6+ x86-64

File details

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

File metadata

File hashes

Hashes for bearlibterminal-0.14.8-py2.py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 ad5797133cc71cff03e2590a742e36262f5aea6ca79aa3dc5a5c8a4b7f540c2a
MD5 baea541cd8ab3baf4baf8f439af310b1
BLAKE2b-256 dd46437558d4652f6d57b4042af861d2c85d850ab2bc336f67a33e07ea70df36

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bearlibterminal-0.14.8-py2.py3-none-win32.whl
Algorithm Hash digest
SHA256 eb0abcc01f72d38399966ea7482d8b1c32bbbeb0140cc49b5b4b997309ccf1e1
MD5 cbda00d152c87521f6838ef7ce0f9157
BLAKE2b-256 7a4aebc8864e0c5fb8bdd9e37569034c8fe8d83f02eaf626aa568f431ce14f13

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bearlibterminal-0.14.8-py2.py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 09a417bb7c7c624b2d9d095c2a4c559daa7f6ff874677699d11678166bb1d669
MD5 65ad602a77c2b3f390d6a8666e38bd7b
BLAKE2b-256 51743ebd815a1c136ece77e523f34b0053ea1eb2a0121d3ec866b0c7808c60c0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bearlibterminal-0.14.8-py2.py3-none-manylinux1_i686.whl
Algorithm Hash digest
SHA256 ab8329b9c2ddacf0c4a10150a5ac88ed404b2cfe91cdf33440da2fbf6552efda
MD5 bd87fa9066e60cf49bac60ee29ac440e
BLAKE2b-256 533b1c0982cc8555a92842505c0d9c865ec3c3460576194f115208bfa043cc36

See more details on using hashes here.

File details

Details for the file bearlibterminal-0.14.8-py2.py3-none-macosx_10_6_x86_64.whl.

File metadata

File hashes

Hashes for bearlibterminal-0.14.8-py2.py3-none-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 402a4b61481a82cd7d1ccff95c5f21b381e87a8f33d53f990c7def558cb0cc9d
MD5 bdf5901f8a1d321d5860c311dbbfa088
BLAKE2b-256 21c420e1cd3bb1b241238e5a5e6533ba6303294c375e9040f7b98a0637284cef

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