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

Uploaded Python 2Python 3Windows x86-64

bearlibterminal-0.14.2-py2.py3-none-win32.whl (700.0 kB view details)

Uploaded Python 2Python 3Windows x86

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

Uploaded Python 2Python 3

bearlibterminal-0.14.2-py2.py3-none-manylinux1_i686.whl (432.3 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

File hashes

Hashes for bearlibterminal-0.14.2-py2.py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 8fb02fe511d5d6bd55260d70b69dae8e1df6cae5e995b20c2910201b82219331
MD5 50038b215950b52c58f4edd0698f7aa4
BLAKE2b-256 99c0498ee17b4d4e5cac92841cff33910b5844d7428b6df29777eda31800bb6e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bearlibterminal-0.14.2-py2.py3-none-win32.whl
Algorithm Hash digest
SHA256 a04d4eed3802a799d76a2f6a91685cbc6888274bf36f96a3ca31f175ac6f186f
MD5 51bae0d638da898668aef6b683402eba
BLAKE2b-256 58dbb9528b0eddd564aa0084ab7f2ce4fec00f542f7422a5ca370e9e35b38876

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bearlibterminal-0.14.2-py2.py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 1b03a56edd517c794a943bc583ce5b353f6466c14d935268cbf6649164c6e083
MD5 4091240afb43b4f39341d802a142e686
BLAKE2b-256 cc3f17c7fca1c049d81df6f2141f6b3215716f21fb4224c634bee3a331e4d243

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bearlibterminal-0.14.2-py2.py3-none-manylinux1_i686.whl
Algorithm Hash digest
SHA256 7f83658643684feb1e3771f3d33c361a5f8b21eff775737814a383ef1cd407ff
MD5 4b3edfcacc314e66c4344498463b2651
BLAKE2b-256 99d8a67745f625e0dff394a7af03aea5246ef196455477a3d69a613df102213f

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