Ë c‡½j) ã ób — d Z ddl ddlZddlZd„ Zd„ Z e d„ Z y# e $ r ddlmZ Y d„ Z yw xY w) 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() ... é )Ú*Nc ó< — dd l } dd l}t t j j dd« t j j « ¬« | j « }| j j « D ] \ }}|dd dk( s|dv sŒt |||« Œ! |S )Nr ÚTERMÚunknown)ÚtermÚfdé ÚACS_)ÚLINESÚCOLS) Ú_cursesÚcursesÚ setuptermÚ_osÚenvironÚgetÚ_sysÚ __stdout__ÚfilenoÚinitscrÚ__dict__ÚitemsÚsetattr)r r ÚstdscrÚkeyÚvalues ú(/usr/lib64/python3.12/curses/__init__.pyr r s‚ € ßô ”3—;‘;—?‘? 6¨9Ó5Ü—‘×'Ñ'Ó)õ+à �_‰_Ó €FØ×&Ñ&×,Ñ,Ö.‰ ˆˆU؈q�ˆ8�vÒ Ð(9Ò!9Ü�F˜C Õ'ð /ð €Mó c óª — dd l } dd l}| j « }t | d« r| j |_ t | d« r| j |_ |S )Nr ÚCOLORSÚCOLOR_PAIRS)r r Ústart_colorÚhasattrr r! )r r Úretvals r r" r" * sE € ߨ × Ñ Ó "€F܈w˜Ô!ØŸ™ˆŒ ܈w˜ Ô&Ø$×0Ñ0ˆÔØ€Mr é )Úhas_keyc ó˜ — t « }t « t « |j d« t « | |g|¢i |¤Ždt « v r0|j d« t « t « t « S S # Y ŒLxY w# dt « v r0j d« t « t « t « w w xY w)a Wrapper 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(). r% r r ) r ÚnoechoÚcbreakÚkeypadr" ÚlocalsÚechoÚnocbreakÚendwin)ÚfuncÚargsÚkwdsr s r Úwrapperr2 ? s© € ð䓈ô ŒÜŒð � ‰ �aÔð ÜŒMñ �FÐ*˜TÒ* TÑ*ð ”v“xÑØ�M‰M˜!ÔÜŒFÜŒJÜ�Hð øð Ùûð ”v“xÑØ�M‰M˜!ÔÜŒFÜŒJÜ�Hð ús! ‚/B ² B ¼B ÂBÂB Â>C )Ú__doc__r Úosr Úsysr r r" r&