Skip to main content

Little and simple wrapper for curses application.

Project description

Cursy

Little and simple wrapper for curses application.

Getting started

The @curses_application decorator is a util built upon curses.wrapper function. This decorator adds stdscr to self object on execution time of start method of the class under @curses_application decorator, so it can be used within the method to access the initialized curses screen.

Installation

pip install cursy

Usage

@cursy.curses_application
class Application:
    def start(self):
        self.stdscr.clear()
        self.stdscr.addstr(0, 0, 'Hello world')
        self.stdscr.getch()

if __name__ == "__main__":
    app = Application()
    app.start()

License

MIT

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

cursy-1.0.1.tar.gz (2.2 kB view hashes)

Uploaded Source

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