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

Uploaded Python 2Python 3Windows x86-64

bearlibterminal-0.15.2-py2.py3-none-win32.whl (673.6 kB view details)

Uploaded Python 2Python 3Windows x86

bearlibterminal-0.15.2-py2.py3-none-manylinux1_x86_64.whl (441.2 kB view details)

Uploaded Python 2Python 3

bearlibterminal-0.15.2-py2.py3-none-manylinux1_i686.whl (433.5 kB view details)

Uploaded Python 2Python 3

bearlibterminal-0.15.2-py2.py3-none-macosx_10_9_universal.whl (377.9 kB view details)

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

File details

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

File metadata

File hashes

Hashes for bearlibterminal-0.15.2-py2.py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 f26c4c25f9630d0a4ab5a22f6b6af3c0cd8f057d424159a6dfe671d580ebb147
MD5 1662c00892571ed1c47a549a86f10270
BLAKE2b-256 cafaf623cf0515561f0cf7d14270e01eb4feb30761f2d688bb2e091fae864700

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bearlibterminal-0.15.2-py2.py3-none-win32.whl
Algorithm Hash digest
SHA256 a74373d3fc27421b74bd86a4cee8b9a5900ad5be810428cd7befd1773d2407d7
MD5 bcbf7d1de162c858ad00259e49bce681
BLAKE2b-256 48fdb5b7276c34f554eb0847bf02c48ac0361d99edaff3fce0d3b78c7e701b5d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bearlibterminal-0.15.2-py2.py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 056dd5508c10bf01b1ef62245c461135b07fc6578f93abf384ec19f53b400394
MD5 19c6557d5acce4d303fd3ba4276b6eeb
BLAKE2b-256 197212953ed8c8f69cca716982a26bcefaccc8ce0dc1590a10900b81bd249f0b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bearlibterminal-0.15.2-py2.py3-none-manylinux1_i686.whl
Algorithm Hash digest
SHA256 c253ee943b6c3456edc6c4353c51e31f5ff280d37a4d377fcc90ca02e3e6e286
MD5 cbc9bf0754e1e3090b5a4baf4d1005af
BLAKE2b-256 15addefad98bc14a232a67bb118596542479fee472f38356df54e1cb8f119a42

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bearlibterminal-0.15.2-py2.py3-none-macosx_10_9_universal.whl
Algorithm Hash digest
SHA256 122efdcdd713be8b397cce198310483a8a4706af0d6235c5c5cd21d3e4ecfa13
MD5 fe1afc4a6a908f724204479d28741e93
BLAKE2b-256 041255a9f273b4123d512bddafa30e8b8d450e2ad429925bb471a59b61faca46

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