o 0¦i) ã@s`dZddlTddlZddlZdd„Zdd„ZzeWne y)dd lmZYnwd d „Z dS) zØcurses The main package for curses support for Python. Normally used by importing the package, and perhaps a particular module inside it. import curses from curses import textpad curses.initscr() ... é)Ú*NcCspddl}ddl}ttj dd¡tj ¡d�|  ¡}|j   ¡D]\}}|dd…dks/|dvr5t |||ƒq|S)NrZTERMÚunknown)ZtermÚfdéZACS_)ZLINESZCOLS) Ú_cursesÚcursesZ setuptermÚ_osÚenvironÚgetÚ_sysÚ __stdout__ÚfilenoÚinitscrÚ__dict__ÚitemsÚsetattr)rrÚstdscrÚkeyÚvalue©rú6/opt/alt/python310/lib64/python3.10/curses/__init__.pyrsÿ €rcCs@ddl}ddl}| ¡}t|dƒr|j|_t|dƒr|j|_|S)NrÚCOLORSÚ COLOR_PAIRS)rrÚ start_colorÚhasattrrr)rrZretvalrrrr*s  ré)Úhas_keyc Osœz8tƒ}tƒtƒ| d¡ztƒWnY||g|¢Ri|¤ŽWdtƒvr8| d¡tƒtƒtƒSSdtƒvrM| d¡tƒtƒtƒww)aWrapper function that initializes curses and calls another function, restoring normal keyboard/screen behavior on error. The callable object 'func' is then passed the main window 'stdscr' as its first argument, followed by any other arguments passed to wrapper(). rrr) rZnoechoZcbreakZkeypadrÚlocalsZechoZnocbreakZendwin)ÚfuncÚargsÚkwdsrrrrÚwrapper?s*     ü ür!) Ú__doc__rÚosrÚsysr rrrÚ NameErrorr!rrrrÚs    ÿ