<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet"
        integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.3.0/css/all.min.css"
        integrity="sha512-SzlrxWUlpfuzQ+pcUCosxcglQRNAq/DZjVsC0lE40xsADsfeQoEypE+enwcOiGjk/bSuGGKHEyjSoQ1zVisanQ=="
        crossorigin="anonymous" referrerpolicy="no-referrer" />
</head>
</html>
a
    XC?h)                     @   s`   d Z ddlT ddlZddlZdd Zdd Zze W n e	yR   dd	lmZ Y n0 d
d Z
dS )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   dd l } dd l}ttjddtj d | 	 }| j
 D ],\}}|dd dks^|dv r>t||| q>|S )Nr   ZTERMunknown)Ztermfd   ZACS_)ZLINESZCOLS)_cursescursesZ	setupterm_osenvironget_sys
__stdout__filenoinitscr__dict__itemssetattr)r   r   stdscrkeyvalue r   4/opt/alt/python39/lib64/python3.9/curses/__init__.pyr      s    r   c                  C   s@   dd l } dd l}|  }t| dr*| j|_t| dr<| j|_|S )Nr   COLORSCOLOR_PAIRS)r   r   start_colorhasattrr   r   )r   r   Zretvalr   r   r   r   *   s    

r      )has_keyc             	   O   s   ztt  }t  t  |d z
t  W n   Y n0 | |g|R i |W dt v rr|d t  t  t  S n(dt v r|d t  t  t  0 dS )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   N)	r   ZnoechoZcbreakZkeypadr   localsZechoZnocbreakZendwin)funcargskwdsr   r   r   r   wrapper?   s4    



    

r!   )__doc__r   osr   sysr   r   r   r   	NameErrorr!   r   r   r   r   <module>   s   
