File "__init__.cpython-38.opt-1.pyc"
Full Path: /home/attunedd/public_html/byp/izo/con7ext_sym404/rintoar.txt/lib64/python3.8/curses/__pycache__/__init__.cpython-38.opt-1.pyc
File size: 2.09 KB
MIME-type: text/x-bytecode.python
Charset: 8 bit
U
e5d @ sh d Z ddlT ddlZddlZdd Zdd Zze W n e k
rT dd lmZ Y nX d
d Z
de
_dS )
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 C sp dd l } dd l}ttjddtj d | }| j
D ],\}}|dd dks^|dkr>t||| q>|S )Nr ZTERMunknown)Ztermfd ZACS_)ZLINESZCOLS)
_cursescursesZ setupterm_osenvironget_sys
__stdout__filenoinitscr__dict__itemssetattr)r r stdscrkeyvalue r '/usr/lib64/python3.8/curses/__init__.pyr s r c C s@ dd l } dd l}| }t| dr*| j|_t| dr<| j|_|S )Nr COLORSCOLOR_PAIRS)r r start_colorhasattrr r )r r Zretvalr r r r * s
r )has_keyc O s | r| ^}} n<d|kr:| d}ddl}|jdtdd ntdt| zHt }t t
|d z
t W n Y nX ||f| |W S dt kr|d t t t
X dS )
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().
funcr Nz0Passing 'func' as keyword argument is deprecated )
stacklevelz7wrapper expected at least 1 positional argument, got %dr r )popwarningswarnDeprecationWarning TypeErrorlenlocalsZkeypadZechoZnocbreakZendwinr ZnoechoZcbreakr )argskwdsr r! r r r r wrapper? s6
r) z(func, /, *args, **kwds))__doc__r osr sysr r r r NameErrorr) __text_signature__r r r r <module> s
2