Skip to main content

Curses made simple

Project description

Curses made simple

PyPI Documentation Status Codacy Travis-CI Tag

pip install cursebox-lib

Cursebox is a library based around the curses standard module. Its goal is to avoid the C-like ceremony of curses and provide a modern approach to terminal drawing:

>>> from cursebox import *
>>> with Cursebox() as cb:
...     width, height = cb.width, cb.height
...     greeting = "Hello, World!"
...     # Center text on the screen
...     cb.put(x=(width - len(greeting)) / 2,
...            y=height / 2, text=greeting,
...  , bg=colors.white)
...     # Wait for any keypress
...     cb.poll_event()

It provides several useful features:

  • No setup/teardown
  • RGB conversion to terminal 256-colors palette
  • Event management

Full documentation on Read the Docs


  • Unit tests
  • Finish documentation
  • Handmade curses module using ANSI escape sequences for Windows replacement
  • Add pixel buffer from other project

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for cursebox-lib, version 1.0.2
Filename, size File type Python version Upload date Hashes
Filename, size cursebox-lib-1.0.2.tar.gz (7.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page