Critics have remarked that those four worthies were truly peerless throughout the ages; yet the present falls short of the past—the ancients favored unadorned simplicity, whereas the moderns prefer refined elegance. Styles of substance and ornament rise and fall in succession, shifting with the changing mores of the times; such evolution is simply the natural order of things. The ideal lies in honoring antiquity without clashing with the present, and embracing modernity without succumbing to its flaws—embodying that perfect balance of substance and refinement that defines the true gentleman. There is surely no need to abandon a carved palace in favor of a cave dwelling, or to trade a jade carriage for a primitive cart with solid wooden wheels.
Current path: lib64/python3.6/curses/__pycache__/
✅ Cloned to:
⬆️ Go up: /lib64/python3.6/curses
3
\&
� @ sb d Z ddlT ddlZddlZdd� Zdd� Zye W n e k
rT dd lmZ Y nX d
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()
...
� )�*Nc C st dd l } dd l}ttjjdd�tjj� d� | j � }x:| j
j� D ],\}}|dd� dks`|d kr@t|||� q@W |S )
Nr ZTERM�unknown)Zterm�fd� ZACS_�LINES�COLS)r r )
�_curses�cursesZ setupterm�_os�environ�get�_sys�
__stdout__�fileno�initscr�__dict__�items�setattr)r r �stdscr�key�value� r �'/usr/lib64/python3.6/curses/__init__.pyr s r c C s@ 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 Zretvalr r r r * s
r � )�has_keyc O sr zDt � }t� t� |jd� y
t� W n Y nX | |f|�|�S dt� krl|jd� 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().
r Nr r ) r ZnoechoZcbreakZkeypadr �localsZechoZnocbreakZendwin)�func�args�kwdsr r r r �wrapper? s
r# )�__doc__r �osr
�sysr
r r r � NameErrorr# r r r r �<module> s