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

Uploaded Python 2Python 3Windows x86-64

bearlibterminal-0.14.1-py2.py3-none-win32.whl (700.3 kB view details)

Uploaded Python 2Python 3Windows x86

bearlibterminal-0.14.1-py2.py3-none-manylinux1_x86_64.whl (444.6 kB view details)

Uploaded Python 2Python 3

bearlibterminal-0.14.1-py2.py3-none-manylinux1_i686.whl (432.7 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

File hashes

Hashes for bearlibterminal-0.14.1-py2.py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 f54e0af98d84ed144d1ee94aba5d2f2f297fc175ea41ba2dc9159f3197acd774
MD5 39041b4b091a07506796a024db280a47
BLAKE2b-256 926c31ba239c46aed3f9646aa5933b34c248518bf81ac849a008d9130b9f45bd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bearlibterminal-0.14.1-py2.py3-none-win32.whl
Algorithm Hash digest
SHA256 4aa3200fff3427d5ac707d18296daa728551f960690ce3ae46832b203b79dc5b
MD5 5751a886a02ed66ccff8dde7167dfc2f
BLAKE2b-256 b36842e384a8aaaa947444860a14e72c631c307c03b021ae2f28ed81a07d88bf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bearlibterminal-0.14.1-py2.py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 aba88401ee7c090639df58832f60630a2a9a8e1014aac610d27c3face994cb2d
MD5 b13677b4d7684c647f0cc6ac6edb8826
BLAKE2b-256 41b4d6a4adbc6e55a6de2da4a19ecde5754b2751afb0a2343b27825bcff8b263

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bearlibterminal-0.14.1-py2.py3-none-manylinux1_i686.whl
Algorithm Hash digest
SHA256 63608bd779036ccc3950dbf1d50b924b661f10c7eb1e4d692f4d849fa3594b53
MD5 5882658e846bfbd5d3cc32a5a1862da1
BLAKE2b-256 e3a5ecdffa53ddea705c0e5300cec3d156d66eef7f7a3a352223adcf62c887b5

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