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

Uploaded Python 2Python 3Windows x86-64

bearlibterminal-0.14.10-py2.py3-none-win32.whl (703.1 kB view details)

Uploaded Python 2Python 3Windows x86

bearlibterminal-0.14.10-py2.py3-none-manylinux1_x86_64.whl (443.2 kB view details)

Uploaded Python 2Python 3

bearlibterminal-0.14.10-py2.py3-none-manylinux1_i686.whl (432.4 kB view details)

Uploaded Python 2Python 3

bearlibterminal-0.14.10-py2.py3-none-macosx_10_9_universal.whl (739.0 kB view details)

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

File details

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

File metadata

File hashes

Hashes for bearlibterminal-0.14.10-py2.py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 05a770f2264344347b77666faadcdb6d3ea9f5651f88bfcdf7cc58281c5ded3d
MD5 8c4e1b0c190eb7fdfc4462f12ba4ae37
BLAKE2b-256 4e5963b67ff67a4ae60b39b256ed783ea14fd838966e2baf05073c5a78f86d11

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bearlibterminal-0.14.10-py2.py3-none-win32.whl
Algorithm Hash digest
SHA256 a4b8a6a8ceb1ea67ddbcef77462d6c9d4eab254020e22d394cb1f76633661202
MD5 27991df2ceb17659e080060748a681e6
BLAKE2b-256 d7900c7721f0b7b81a328e42aa96572aed8ea64b4150a4f1d64ca6c90dc63be3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bearlibterminal-0.14.10-py2.py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 5f4e880193105dd602c6e4cffa4d5b2d4f1e3c2b5594bfeaf583b19dfc37dbdd
MD5 5b92b4ad17c8f5f081f9ac2cd27718fa
BLAKE2b-256 9a613cfa406dd4b41aceaa4813c5983b6738cc25a9c031e15c412daf4ce524d0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bearlibterminal-0.14.10-py2.py3-none-manylinux1_i686.whl
Algorithm Hash digest
SHA256 5a4bb312391423b793de83fd51b78939563d54522b80d9d9a5eb5069f5b8ca8e
MD5 4d2c9d7cce4a8ef869443c619960a2f0
BLAKE2b-256 a20d4567d0df13a2dc9208408fc9ca10f12db9b7d068d150279a7be375fae55c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bearlibterminal-0.14.10-py2.py3-none-macosx_10_9_universal.whl
Algorithm Hash digest
SHA256 3ba13ada55ec22148e8387a314f864fda73f9b21103752f8776d65d4de30776b
MD5 c10d97da90f56c3b67c11113299a5d62
BLAKE2b-256 e361cd495a7a9a741f4b88c3ebd460e8c0cd92a16df89d9ebb1e519731f5b8c6

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