/usr/lib64/python3.12/curses/__pycache__
Edit: /usr/lib64/python3.12/curses/__pycache__/__init__.cpython-312.pyc (2798B)
{|j)
b d Z ddl ddlZddlZd Zd Z e d Z
y# e $ r ddlmZ Y d Z
yw xY w) zcurses
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 st ||| ! |S )Nr TERMunknown)termfd ACS_)LINESCOLS)
_cursescurses setupterm_osenvironget_sys
__stdout__filenoinitscr__dict__itemssetattr)r
r stdscrkeyvalues (/usr/lib64/python3.12/curses/__init__.pyr r s 3;;??695'')+
__
F&&,,.
Uq8v(9!9FC' / M c dd l } dd l}| j }t | d r| j |_ t | d r| j
|_ |S )Nr COLORSCOLOR_PAIRS)r
r start_colorhasattrr r! )r
r retvals r r" r" * sE
"Fw!
w
&$00Mr )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 noechocbreakkeypadr" localsechonocbreakendwin)funcargskwdsr s r wrapperr2 ? s
a M F*T*T* vxMM!FJH
vxMM!FJH s! /B
B B BB >C )__doc__r
osr sysr r r" r&