Metadata-Version: 1.1
Name: cursed
Version: 0.1.9
Summary: Simplified curses
Home-page: https://www.bitbucket.org/johannestaas/cursed
Author: Johan Nestaas
Author-email: johannestaas@gmail.com
License: GPLv3+
Description: cursed
        ======
        
        Simplified curses interface with concurrency, for quick and sane curses apps.
        
        Allows easy creation of windows and menus. Code for each window runs concurrently.
        
        Please see full documentation available here: http://pythonhosted.org/cursed/
        
        cursed was tested with Python 3.4 and 2.7, and depends on the Python package six for compatibility.
        
        Installation
        ------------
        
        With pip, for the latest stable::
        
            $ pip install cursed
        
        Or from the project root directory::
        
            $ python setup.py install
        
        Usage
        -----
        
        Example::
        
            from cursed import CursedApp, CursedWindow
        
            app = CursedApp()
            
            class MainWindow(CursedWindow):
                WIDTH=80
                BORDERED = True
        
                @classmethod
                def update(cls):
                    ''' update runs every tick '''
                    # Hello world printed at x,y of 0,0
                    cls.addstr('Hello, world!', 0, 0)
                    if cls.getch() == 27:
                        # Escape was pressed. Quit.
                        cls.trigger('quit')
        
            result = app.run()
            if result.interrupted():
                # check if ctrl-C was pressed
                print('Quit!')
            else:
                # Raises an exception if any thread ran into a different exception.
                result.unwrap()
        
        Many more examples are available in the root of the repository at examples/
        
        Release Notes
        -------------
        
        :0.1.9:
            - fixed the ``write`` and ``getstr`` classmethods, since they called _fix_xy twice
            - added info to menu example to explain ``addstr`` in update will overwrite menu display
        :0.1.8:
            - added tons of documentation and examples
        :0.1.7:
            - Better CursedMenu API
        :0.1.6:
            - WIDTH or HEIGHT specified as 'max' will stretch to the full width or height of the terminal
        :0.1.5:
            - patched issue with returning bytes in getstr
        :0.1.4:
            - Implemented getstr
        :0.1.3:
            - Fixed menu to fill up right side with whitespace
        :0.1.2:
            - fixed menus stealing keypresses
        :0.1.1:
            - left and right open menus to sides
            - refactored menus
        :0.1.0:
            - implemented menus!
        :0.0.2:
            - implemented lots from the following:
                1. https://docs.python.org/2/library/curses.html
                2. https://docs.python.org/2/howto/curses.html
        :0.0.1:
            - Project created
        
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Classifier: Environment :: Console
Classifier: Environment :: X11 Applications :: Qt
Classifier: Environment :: MacOS X
Classifier: Environment :: Win32 (MS Windows)
Classifier: Operating System :: POSIX
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Operating System :: Microsoft :: Windows
Classifier: Programming Language :: Python
