HEX

Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit - prohibited by configuration in /home/u547966/brikov.ru/www/wp-content/plugins/admin-menu-editor/menu-editor.php on line 745
Server: Apache
System: Linux 4.19.0-0.bpo.9-amd64 x86_64 at red40
User: u547966 (5490)
PHP: 5.3.29-mh2
Disabled: syslog, dl, popen, proc_open, proc_nice, proc_get_status, proc_close, proc_terminate, posix_mkfifo, chown, chgrp, accelerator_reset, opcache_reset, accelerator_get_status, opcache_get_status, pcntl_alarm, pcntl_fork, pcntl_waitpid, pcntl_wait, pcntl_wifexited, pcntl_wifstopped, pcntl_wifsignaled, pcntl_wifcontinued, pcntl_wexitstatus, pcntl_wtermsig, pcntl_wstopsig, pcntl_signal, pcntl_signal_dispatch, pcntl_get_last_error, pcntl_strerror, pcntl_sigprocmask, pcntl_sigwaitinfo, pcntl_sigtimedwait, pcntl_exec, pcntl_getpriority, pcntl_setpriority
Upload Files
File: //usr/lib/python3.5/curses/__pycache__/textpad.cpython-35.pyc


Fa@s{dZddlZddlZddZGdddZedkrwdd	ZejeZe	d
e
edS)z:Simple textbox editing widget with Emacs-like keybindings.NcCs|j|d|tj||d|j||dtj||d|j||dtj||d|j|d|tj||d|j||tj|j||tj|j||tj|j||tj	dS)z^Draw a rectangle with corners at the provided upper-left
    and lower-right coordinates.
    N)
ZvlinecursesZ	ACS_VLINEZhlineZ	ACS_HLINEaddchZACS_ULCORNERZACS_URCORNERZACS_LRCORNERZACS_LLCORNER)winulyulxZlryZlrxr$/usr/lib/python3.5/curses/textpad.py	rectangles%%%%r
c@speZdZdZdddZddZddZd	d
ZddZd
dZ	dddZ
dS)TextboxadEditing 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
    FcCs?||_||_|jd|_d|_|jddS)Nr)rinsert_mode_update_max_yxstripspaceslastcmdZkeypad)selfrrrrr	__init__+s		
		zTextbox.__init__cCs3|jj\}}|d|_|d|_dS)Nr)rZgetmaxyxmaxymaxx)rrrrrr	r
3s
zTextbox._update_max_yxcCs||j|j}xbtjj|jj||tjjkr]t|j|d}Pn
|dkrjP|d}qW|S)zuGo to the location of the first blank on the given line,
        returning the index of the last non-blank character.rr)r
rrasciirinchZSPmin)ryZlastrrr	_end_of_line8s
	-zTextbox._end_of_linecCs|j|jj\}}d}x||jksF||jkr|jr^|jj}y|jj|Wntj	k
rYnX|jstj
j|rP|}|jj\}}|dkr(||f}q(W|dk	r|jj|dS)N)
r
rgetyxrrrrrrerrorrisprintmove)rchrxZbackyxZoldchrrr	_insert_printable_charFs$
!	zTextbox._insert_printable_charcCsW|j|jj\}}||_tjj|rh||jksX||jkrS|j	|n|tjj
kr|jj|dn|tjjtj
tjjtjfkrd|dkr|jj||dnY|dkrnJ|jr|jj|d|j|dn|jj|d|j|tjjtjfkrS|jjn|tjjkr|jjn|tjjkr|jr|jj||j|qS|jj||jnz|tjjtjfkrI||jkr|jj||dqS||jkr/qS|jj|ddn
|tjjkr_dS|tjjkr|jdkrdS||jkrS|jj|ddn|tjjkr|dkr|j|dkr|jjqS|jj|||jjn@|tjjkr5|jjn|tjjtjfkr||jkrS|jj|d|||j|dkrS|jj|d|j|dn|tjj kr|jj!n{|tjj"tj#fkrS|dkrS|jj|d|||j|dkrS|jj|d|j|ddS)z!Process a single editing command.rr)$r
rrrrrrrrrZSOHrZSTXZKEY_LEFTZBSZ
KEY_BACKSPACErrZdelchZEOTZENQZACKZ	KEY_RIGHTZBELNLZVTZdeletelnZclrtoeolZFFrefreshZSOZKEY_DOWNZSIZinsertlnZDLEZKEY_UP)rrrrrrr	
do_command_sr
	*	'	!'$zTextbox.do_commandcCsd}|jxt|jdD]}|jj|d|j|}|dkrd|jrdq$x\t|jdD]G}|jr||krP|tt	j
j
|jj||}qxW|jdkr$|d}q$W|S)z.Collect and return the contents of the window.rr
)r
rangerrrrrrchrrrr)rresultrstoprrrr	gathers
/zTextbox.gatherNcCsXxK|jj}|r$||}|s-q|j|s=P|jjqW|jS)z2Edit in the widget window and collect the results.)rZgetchr"r!r))rZvalidaterrrr	editszTextbox.edit)__name__
__module____qualname____doc__rr
rrr"r)r*rrrr	rsAr__main__cCsd\}}d	\}}|j|d|dtj||||}t||d|d|||||jt|jS)
N	zUse Ctrl-G to end editing.r)r0r1)r2r3)ZaddstrrZnewwinr
r!rr*)ZstdscrZncolsZnlinesrrrrrr	test_editboxs&
r5zContents of text box:)r.rZcurses.asciir
rr+r5wrapperstrprintreprrrrr	<module>s