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 hashes)

Uploaded Python 2 Python 3 Windows x86-64

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

Uploaded Python 2 Python 3 Windows x86

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

Uploaded Python 2 Python 3

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

Uploaded Python 2 Python 3

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

Uploaded Python 2 Python 3 macOS 10.9+ universal

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page