<!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>
ž
¬ÿf«  c               @   s~   d  Z  d d l Z d d l Z d d „  Z Gd d „  d ƒ Z e d k rz d d	 „  Z e j e ƒ Z e	 d
 e
 e ƒ ƒ n  d S(   u:   Simple textbox editing widget with Emacs-like keybindings.i    Nc             C   sð   |  j  | d | t j | | d ƒ |  j | | d t j | | d ƒ |  j | | d t j | | d ƒ |  j  | d | t j | | d ƒ |  j | | t j ƒ |  j | | t j ƒ |  j | | t j ƒ |  j | | t j	 ƒ d S(   u^   Draw a rectangle with corners at the provided upper-left
    and lower-right coordinates.
    i   N(
   u   vlineu   cursesu	   ACS_VLINEu   hlineu	   ACS_HLINEu   addchu   ACS_ULCORNERu   ACS_URCORNERu   ACS_LRCORNERu   ACS_LLCORNER(   u   winu   ulyu   ulxu   lryu   lrx(    (    u3   /opt/alt/python33/lib64/python3.3/curses/textpad.pyu	   rectangle   s    %%%%u	   rectanglec             B   sh   |  Ee  Z d  Z d Z d d d „ Z d d „  Z d d „  Z d d	 „  Z d
 d „  Z	 d d d „ Z d S(   u   Textboxud  Editing widget using the interior of a window object.
     Supports the following Emacs-like key bindings:

    Ctrl-A      Go to left edge of window.
    Ctrl-B      Cursor left, wrapping to previous line if appropriate.
    Ctrl-D      Delete character under cursor.
    Ctrl-E      Go to right edge (stripspaces off) or end of line (stripspaces on).
    Ctrl-F      Cursor right, wrapping to next line when appropriate.
    Ctrl-G      Terminate, returning the window contents.
    Ctrl-H      Delete character backward.
    Ctrl-J      Terminate if the window is 1 line, otherwise insert newline.
    Ctrl-K      If line is blank, delete it, otherwise clear to end of line.
    Ctrl-L      Refresh screen.
    Ctrl-N      Cursor down; move down one line.
    Ctrl-O      Insert a blank line at cursor location.
    Ctrl-P      Cursor up; move up one line.

    Move operations do nothing if the cursor is at an edge where the movement
    is not possible.  The following synonyms are supported where possible:

    KEY_LEFT = Ctrl-B, KEY_RIGHT = Ctrl-F, KEY_UP = Ctrl-P, KEY_DOWN = Ctrl-N
    KEY_BACKSPACE = Ctrl-h
    c             C   sm   | |  _  | |  _ | j ƒ  \ |  _ |  _ |  j d |  _ |  j d |  _ d |  _ d  |  _ | j d ƒ d  S(   Ni   (	   u   winu   insert_modeu   getmaxyxu   maxyu   maxxu   stripspacesu   Noneu   lastcmdu   keypad(   u   selfu   winu   insert_mode(    (    u3   /opt/alt/python33/lib64/python3.3/curses/textpad.pyu   __init__+   s    				u   Textbox.__init__c             C   st   |  j  } xd t j j |  j j | | ƒ ƒ t j j k rS t |  j  | d ƒ } Pn | d k rc Pn  | d } q | S(   uu   Go to the location of the first blank on the given line,
        returning the index of the last non-blank character.i   i    (   u   maxxu   cursesu   asciiu   winu   inchu   SPu   min(   u   selfu   yu   last(    (    u3   /opt/alt/python33/lib64/python3.3/curses/textpad.pyu   _end_of_line5   s    	-u   Textbox._end_of_linec             C   s×   |  j  j ƒ  \ } } | |  j k  s3 | |  j k  rÓ |  j rN |  j  j ƒ  } n  y |  j  j | ƒ Wn t j k
 ry Yn X|  j rÓ |  j  j ƒ  \ } } t j	 j
 | ƒ rÐ |  j | ƒ |  j  j | | ƒ qÐ qÓ n  d  S(   N(   u   winu   getyxu   maxyu   maxxu   insert_modeu   inchu   addchu   cursesu   erroru   asciiu   isprintu   _insert_printable_charu   move(   u   selfu   chu   yu   xu   oldchu   backyu   backx(    (    u3   /opt/alt/python33/lib64/python3.3/curses/textpad.pyu   _insert_printable_charB   s    		u   Textbox._insert_printable_charc             C   se  |  j  j ƒ  \ } } | |  _ t j j | ƒ ra | |  j k  sN | |  j k  ra|  j | ƒ qan | t j j	 k r‰ |  j  j
 | d ƒ nØ| t j j t j t j j t j f k r`| d k rÙ |  j  j
 | | d ƒ nY | d k rè nJ |  j r|  j  j
 | d |  j | d ƒ ƒ n |  j  j
 | d |  j ƒ | t j j t j f k ra|  j  j ƒ  qan| t j j k r‚|  j  j ƒ  nß| t j j k rÕ|  j r¼|  j  j
 | |  j | ƒ ƒ qa|  j  j
 | |  j ƒ nŒ| t j j t j f k rE| |  j k  r|  j  j
 | | d ƒ qa| |  j k r+qa|  j  j
 | d d ƒ n| t j j k r[d S| t j j k r¬|  j d k r€d S| |  j k  ra|  j  j
 | d d ƒ qanµ| t j j k r| d k rï|  j | ƒ d k rï|  j  j ƒ  qa|  j  j
 | | ƒ |  j  j ƒ  nO| t j j k r4|  j  j ƒ  n-| t j j t j f k r»| |  j k  ra|  j  j
 | d | ƒ | |  j | d ƒ k r¸|  j  j
 | d |  j | d ƒ ƒ q¸qan¦ | t j j k rÝ|  j  j  ƒ  n„ | t j j! t j" f k ra| d k ra|  j  j
 | d | ƒ | |  j | d ƒ k r^|  j  j
 | d |  j | d ƒ ƒ q^qan  d S(   u!   Process a single editing command.i    i   (#   u   winu   getyxu   lastcmdu   cursesu   asciiu   isprintu   maxyu   maxxu   _insert_printable_charu   SOHu   moveu   STXu   KEY_LEFTu   BSu   KEY_BACKSPACEu   stripspacesu   _end_of_lineu   delchu   EOTu   ENQu   ACKu	   KEY_RIGHTu   BELu   NLu   VTu   deletelnu   clrtoeolu   FFu   refreshu   SOu   KEY_DOWNu   SIu   insertlnu   DLEu   KEY_UP(   u   selfu   chu   yu   x(    (    u3   /opt/alt/python33/lib64/python3.3/curses/textpad.pyu
   do_commandT   sp    	*	'	!--u   Textbox.do_commandc          
   C   sã   d } xÖ t  |  j d ƒ D]Á } |  j j | d ƒ |  j | ƒ } | d k r] |  j r] q n  x_ t  |  j d ƒ D]J } |  j r | | k r Pn  | t t j	 j	 |  j j
 | | ƒ ƒ ƒ } qq W|  j d k r | d } q q W| S(   u.   Collect and return the contents of the window.u    i   i    u   
(   u   rangeu   maxyu   winu   moveu   _end_of_lineu   stripspacesu   maxxu   chru   cursesu   asciiu   inch(   u   selfu   resultu   yu   stopu   x(    (    u3   /opt/alt/python33/lib64/python3.3/curses/textpad.pyu   gather”   s    /u   Textbox.gatherc             C   s`   xS |  j  j ƒ  } | r' | | ƒ } n  | s3 q n  |  j | ƒ sF Pn  |  j  j ƒ  q |  j ƒ  S(   u2   Edit in the widget window and collect the results.(   u   winu   getchu
   do_commandu   refreshu   gather(   u   selfu   validateu   ch(    (    u3   /opt/alt/python33/lib64/python3.3/curses/textpad.pyu   edit¤   s    u   Textbox.editNF(   u   __name__u
   __module__u   __qualname__u   __doc__u   Falseu   __init__u   _end_of_lineu   _insert_printable_charu
   do_commandu   gatheru   Noneu   edit(   u
   __locals__(    (    u3   /opt/alt/python33/lib64/python3.3/curses/textpad.pyu   Textbox   s   
@u   Textboxu   __main__c             C   s‡   d \ } } d	 \ } } |  j  | d | d ƒ t j | | | | ƒ } t |  | d | d | | | | ƒ |  j ƒ  t | ƒ j ƒ  S(
   Ni	   i   i   i   i   u   Use Ctrl-G to end editing.i   (   i	   i   (   i   i   (   u   addstru   cursesu   newwinu	   rectangleu   refreshu   Textboxu   edit(   u   stdscru   ncolsu   nlinesu   ulyu   ulxu   win(    (    u3   /opt/alt/python33/lib64/python3.3/curses/textpad.pyu   test_editbox²   s    &
u   test_editboxu   Contents of text box:(   u   __doc__u   cursesu   curses.asciiu	   rectangleu   Textboxu   __name__u   test_editboxu   wrapperu   stru   printu   repr(    (    (    u3   /opt/alt/python33/lib64/python3.3/curses/textpad.pyu   <module>   s   ž	