Skip to main content

A curses library emulator that runs on top of the Pygame framework, providing an easy way to create text adventures, rougelikes, and console-style applications.

Project description

http://inventwithpython.com/pygcurse

https://github.com/asweigart/pygcurse

Pygcurse (pronounced “pig curse”) is a curses library emulator that runs on top of the Pygame framework. It provides an easy way to create text adventures, rougelikes, and console-style applications.

Unfortunately, the curses library that comes with the Python standard library does not work on Windows. The excellent Console module from effbot provides curses-like features, but it only runs on Windows and not Mac/Linux. By using Pygame, Pygcurse is able to run on all platforms.

Pygcurse provides several benefits over normal text-based stdio programs:

  1. Color text and background.

  2. The ability to move the cursor and print text anywhere in the console window.

  3. The ability to make console apps that make use of the mouse.

  4. The ability to have programs respond to individual key presses, instead of waiting for the user to type an entire string and press enter (as with input()/raw_input()).

  5. Since the console window that Pygcurse uses is just a Pygame surface object, additional drawing and transformations can be applied to it. Multiple consoles can also be used in the same program.

Pygcurse requires Pygame to be installed. Pygame can be downloaded from http://pygame.org

Pygcurse was developed by Al Sweigart (al@inventwithpython.com)

https://github.com/asweigart/pygcurse

The github repo contains several example programs.

Project details


Download files

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

Source Distribution

Pygcurse-0.10.2.zip (52.5 kB view details)

Uploaded Source

File details

Details for the file Pygcurse-0.10.2.zip.

File metadata

  • Download URL: Pygcurse-0.10.2.zip
  • Upload date:
  • Size: 52.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Pygcurse-0.10.2.zip
Algorithm Hash digest
SHA256 c99bf21e3dd6cecb8a1f1f9d2d0202e5db9055fe7333e4fb675d151b4d82561e
MD5 67994ae31956bc48053dc1dbe456c45a
BLAKE2b-256 22d0269d404d93c174fc5738e0408080abe51e49307d620797af333c69afe4b9

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page