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

Uploaded Python 2Python 3Windows x86-64

bearlibterminal-0.14.4-py2.py3-none-win32.whl (699.9 kB view details)

Uploaded Python 2Python 3Windows x86

bearlibterminal-0.14.4-py2.py3-none-manylinux1_x86_64.whl (444.1 kB view details)

Uploaded Python 2Python 3

bearlibterminal-0.14.4-py2.py3-none-manylinux1_i686.whl (432.6 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

File hashes

Hashes for bearlibterminal-0.14.4-py2.py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 52ba49113ab18071d006ea1c3e56d9d9edbad813b67b7c55ce3de1c272b4d086
MD5 afe92099d405204f87d0a3f20e419fe1
BLAKE2b-256 94c072500c324078c4457d832a84f514993459c9dd777011cd0c8ad48885e51a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bearlibterminal-0.14.4-py2.py3-none-win32.whl
Algorithm Hash digest
SHA256 121137c19aa3625b68fd699ef07883fb70f8e1e0c0e44f4549104a4e8ec17caf
MD5 60f78bda02b164e15283ccfbfdfebb3c
BLAKE2b-256 182e523a89d0fa8c25e33e9f41b419ef6a7021f351fbc56a3a807280df306391

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bearlibterminal-0.14.4-py2.py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 d2e91a7c494c2c41d9a4128676e00205dd7d7b710d6d5680cd258e4286ec6b8b
MD5 097a1710f99393213374add30d5cffa8
BLAKE2b-256 26f2920d0af60e8e99ca0988e09ffae1660439b3fdc0b254cb0e31f08209b79b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bearlibterminal-0.14.4-py2.py3-none-manylinux1_i686.whl
Algorithm Hash digest
SHA256 521c7e6a3dedec2878d46b4dc67379a95f75e1437bcf7e6c061752173da7335d
MD5 a4e78d7a1ba4b131238289201b1f7979
BLAKE2b-256 3922892d5f78e70aeedb8a41743697bf48adbbcc86ec5e55dd9fe728dc06f01e

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