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

Uploaded Python 2Python 3Windows x86-64

bearlibterminal-0.14.7-py2.py3-none-win32.whl (699.7 kB view details)

Uploaded Python 2Python 3Windows x86

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

Uploaded Python 2Python 3

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

Uploaded Python 2Python 3

File details

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

File metadata

File hashes

Hashes for bearlibterminal-0.14.7-py2.py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 849c9c74b671480a83b83247c78d14c6c86e3df8da85da2c7dd950f27a05f418
MD5 8a87e690269c7e05616cbdda3819a086
BLAKE2b-256 8d86f6acaf4c254b1c4cf2e679e13489da01cb706a2bce2a15ce31387cfeb062

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bearlibterminal-0.14.7-py2.py3-none-win32.whl
Algorithm Hash digest
SHA256 4ba2c41fa2f4b4c02ac8e686dad968399bb59c7b47be00e6ef43ccdd2b54f147
MD5 5c955978b893472aad912ccc6314523e
BLAKE2b-256 8182f06824baf7563a1a76d574191c3b9e9f26c49904f09dadd9a0fbdb20f8dd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bearlibterminal-0.14.7-py2.py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 514ab2fccb76a8a43f4735116b295ce97bc9d4d7f03f63d10bac7796f0f87291
MD5 36ea5cd05cc4fcaba03f00ad41218d54
BLAKE2b-256 c844461fdb90058f93250c7ca5cdc39ebd456e942317d8b7d7d0584d83440cf6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bearlibterminal-0.14.7-py2.py3-none-manylinux1_i686.whl
Algorithm Hash digest
SHA256 16e15b2ee20ab82a0ba70e6832d5db031f107ca35a6ee64848f6149217080df7
MD5 889479b36a9a510cdd3fd0c8988dd3a7
BLAKE2b-256 aedeed03fe617fea96bec191d7c6be4896e133cee327c81321946424b775840e

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