U e5d@sdddlTddlZddlZddZddZzeWn ek rPddlmZYnXd d Z d e _ dS) )*NcCspddl}ddl}ttjddtjd| }|j D],\}}|dddks^|dkr>t |||q>|S)NrZTERMunknown)ZtermfdZACS_)ZLINESZCOLS) _cursescursesZ setupterm_osenvironget_sys __stdout__filenoinitscr__dict__itemssetattr)rrstdscrkeyvaluer'/usr/lib64/python3.8/curses/__init__.pyrsrcCs@ddl}ddl}|}t|dr*|j|_t|dr<|j|_|S)NrCOLORS COLOR_PAIRS)rr start_colorhasattrrr)rrZretvalrrrr*s  r)has_keyc Os|r|^}}n s  2