| Server IP : 85.214.239.14 / Your IP : 216.73.216.27 Web Server : Apache/2.4.65 (Debian) System : Linux h2886529.stratoserver.net 4.9.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64 User : www-data ( 33) PHP Version : 8.2.29 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /proc/self/root/usr/lib/python2.7/curses/ |
Upload File : |
�
�, bc @ st d Z d d l Z d d l Z d � Z d d d � � YZ e d k rp d � Z e j e � Z d Ge e � GHn d S(
s: 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( s^ Draw a rectangle with corners at the provided upper-left
and lower-right coordinates.
i N(
t vlinet cursest ACS_VLINEt hlinet ACS_HLINEt addcht ACS_ULCORNERt ACS_URCORNERt ACS_LRCORNERt ACS_LLCORNER( t wint ulyt ulxt lryt lrx( ( s$ /usr/lib/python2.7/curses/textpad.pyt rectangle s %%%%t Textboxc B sJ e Z d Z e d � Z d � Z d � Z d � Z d � Z d d � Z
RS( sd 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 ( R
t insert_modet getmaxyxt maxyt maxxt stripspacest Nonet lastcmdt keypad( t selfR
R ( ( s$ /usr/lib/python2.7/curses/textpad.pyt __init__+ s c C s{ | j } xk t rv t j j | j j | | � � t j j k rY t | j | d � } Pn | d k ri Pn | d } q W| S( su Go to the location of the first blank on the given line,
returning the index of the last non-blank character.i i ( R t TrueR t asciiR
t incht SPt min( R t yt last( ( s$ /usr/lib/python2.7/curses/textpad.pyt _end_of_line5 s -c C s� | j j � \ } } | | j k s3 | | j k r� | j rN | j j � } n y | j j | � Wn t j k
rx n X| j r� | j j � \ } } t j j
| � r� | j | � | j j | | � q� q� n d S( N(
R
t getyxR R R R R R t errorR t isprintt _insert_printable_chart move( R t chR t xt oldcht backyt backx( ( s$ /usr/lib/python2.7/curses/textpad.pyR&