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!")
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


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

Uploaded Python 2Python 3Windows x86-64

bearlibterminal-0.14.11-py2.py3-none-win32.whl (705.7 kB view details)

Uploaded Python 2Python 3Windows x86

bearlibterminal-0.14.11-py2.py3-none-manylinux1_x86_64.whl (445.8 kB view details)

Uploaded Python 2Python 3

bearlibterminal-0.14.11-py2.py3-none-manylinux1_i686.whl (436.1 kB view details)

Uploaded Python 2Python 3

bearlibterminal-0.14.11-py2.py3-none-macosx_10_9_universal.whl (742.4 kB view details)

Uploaded Python 2Python 3macOS 10.9+ universal (x86-64, i386, PPC64, PPC)

File details

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

File metadata

File hashes

Hashes for bearlibterminal-0.14.11-py2.py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 866a7ecc2f08fa74b3e8bdf94ce3d8f36d4f5487c716d4a8bd5849f2a1275c85
MD5 4c9b2036bc447a617ec3b6facde51f7e
BLAKE2b-256 6fb6c039dd351735e4a0c7f421d8b6319b522c7f2347d4fad8cc0dfad8fa949f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bearlibterminal-0.14.11-py2.py3-none-win32.whl
Algorithm Hash digest
SHA256 7e07c84e9f4eb4ef0b9ae127c917aac7974761a0dc6011df3248f35927107fb6
MD5 62268a36073113bc134a778401d83147
BLAKE2b-256 fe1732b603abdb45bf5724e75f822bfd4e95131b8d59ef420fd1540161f82df1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bearlibterminal-0.14.11-py2.py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 64bc5b2d343d476b55c0ede0d7886772f6a91e5cd0f5cc580539df6057960633
MD5 ee6b4a14f0dad3ac4d6843dfba830edf
BLAKE2b-256 d35fefd287d93f1c43714f7ea5ecb7b94d43bd260cef2be5b574c361322a9908

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bearlibterminal-0.14.11-py2.py3-none-manylinux1_i686.whl
Algorithm Hash digest
SHA256 6d8677a99ea00756e6d40ea9a728691a0ae6f089f095bd11c461e6c83072696f
MD5 f35e8d60788dd4f64f0476052c11d281
BLAKE2b-256 249aeb120914f9033294816f2d8c12eee89e95dc76aa83961b0b2a87f5dbdd37

See more details on using hashes here.

File details

Details for the file bearlibterminal-0.14.11-py2.py3-none-macosx_10_9_universal.whl.

File metadata

File hashes

Hashes for bearlibterminal-0.14.11-py2.py3-none-macosx_10_9_universal.whl
Algorithm Hash digest
SHA256 dc962eaba08710ea34e8057e1d944aba82ee102086f8aea5ce4e175e66416d97
MD5 0b57a84a60412ebfb43e319e7318279a
BLAKE2b-256 cc6a7fb5f1659da300c34afacd2cc8ddee4d887d1e6e41b16c0b9924cf2439a5

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