https://t.me/AnonymousX5
Server : Apache
System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64
User : njnconst ( 1116)
PHP Version : 8.4.18
Disable Function : NONE
Directory :  /proc/self/root/lib/python2.7/site-packages/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/self/root/lib/python2.7/site-packages/screen.pyc
�
�ϖFc@s�dZddlZdZdZdZdZdZdZd	Zd
Z	dZ
dZd
ZdZ
dZdZdZdZdZed�Zd�Zddd��YZdS(sKThis implements a virtual screen. This is used to support ANSI terminal
emulation. The screen representation and state is implemented in this class.
Most of the methods are inspired by ANSI screen control codes. The ANSI class
extends this class to add parsing of ANSI escape codes.

$Id: screen.py 486 2007-07-13 01:04:16Z noah $
i����Niiiii	i
iii
iiiiiiiii cCs$||kr|S||kr |S|S(s@This returns a number, n constrained to the min and max bounds. ((tntmintmax((s*/usr/lib/python2.7/site-packages/screen.pyt	constrains
tscreencBs�eZdZddd�Zd�Zd�Zd�Zed�Zed�Z	d	�Z
d
�Zd�Zd�Z
d
�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zddd�Zdd�Zdd�Zdd�Zdd�Zd�Zd�Zd�Zd�Zd�Zd �Z d!�Z!d"�Z"d#�Z#d$�Z$d%�Z%d&�Z&d'�Z'd(�Z(d)�Z)d*�Z*d+�Z+d,�Z,d-�Z-d.�Z.RS(/s<This object maintains the state of a virtual text screen as a
    rectangluar array. This maintains a virtual cursor position and handles
    scrolling as characters are added. This supports most of the methods needed
    by an ANSI text screen. Row and column indexes are 1-based (not zero-based,
    like arrays). iiPcCs~||_||_d|_d|_d|_d|_d|_|j|_gt|j�D]}t	g|j^q[|_
dS(s7This initializes a blank scree of the given dimentions.iN(trowstcolstcur_rtcur_ctcur_saved_rtcur_saved_ctscroll_row_starttscroll_row_endtrangetSPACEtw(tselftrtc((s*/usr/lib/python2.7/site-packages/screen.pyt__init__0s							cCs,djg|jD]}dj|�^q�S(swThis returns a printable representation of the screen. The end of
        each screen line is terminated by a newline. s
t(tjoinR(RR((s*/usr/lib/python2.7/site-packages/screen.pyt__str__>scCs,djg|jD]}dj|�^q�S(s�This returns a copy of the screen as a string. This is similar to
        __str__ except that lines are not terminated with line feeds. R(RR(RR((s*/usr/lib/python2.7/site-packages/screen.pytdumpEscCsXdd|jd}|djgt|�jd�D]}d|d^q4�d|S(s�This returns a copy of the screen as a string with an ASCII text box
        around the screen border. This is similar to __str__ except that it
        adds a box. t+t-s+
s
t|(RRtstrtsplit(Rttop_bottline((s*/usr/lib/python2.7/site-packages/screen.pytprettyLscCs#|jdd|j|j|�dS(Ni(tfill_regionRR(Rtch((s*/usr/lib/python2.7/site-packages/screen.pytfillUscCs�t|d|j�}t|d|j�}t|d|j�}t|d|j�}||krp||}}n||kr�||}}nxLt||d�D]7}x.t||d�D]}|j|||�q�Wq�WdS(Ni(RRRR
tput_abs(RtrstcstretceR!RR((s*/usr/lib/python2.7/site-packages/screen.pyR YscCs|j|jd�dS(sKThis moves the cursor to the beginning (col 1) of the current row.
        iN(tcursor_homeR(R((s*/usr/lib/python2.7/site-packages/screen.pytcrgscCs=|j}|j�||jkr9|j�|j�ndS(s3This moves the cursor down with scrolling.
        N(Rtcursor_downt	scroll_upt
erase_line(Rtold_r((s*/usr/lib/python2.7/site-packages/screen.pytlfns
	

cCs|j�|j�dS(stThis advances the cursor with CRLF properties.
        The cursor will line wrap and the screen may scroll.
        N(R)R.(R((s*/usr/lib/python2.7/site-packages/screen.pytcrlfys
cCs|j�dS(s%This is an alias for crlf().
        N(R/(R((s*/usr/lib/python2.7/site-packages/screen.pytnewline�scCsWt|d|j�}t|d|j�}t|�d}||j|d|d<dS(sScreen array starts at 1 index.iiN(RRRRR(RRRR!((s*/usr/lib/python2.7/site-packages/screen.pyR#�scCs|j|j|j|�dS(s?This puts a characters at the current cursor position.
        N(R#RR(RR!((s*/usr/lib/python2.7/site-packages/screen.pytput�scCs�t|d|j�}t|d|j�}x@t|j|d�D])}|j|||j||d��q@W|j|||�dS(s�This inserts a character at (r,c). Everything under
        and to the right is shifted right one character.
        The last character of the line is lost.
        ii����N(RRRR
R#tget_abs(RRRR!tci((s*/usr/lib/python2.7/site-packages/screen.pyt
insert_abs�s
'cCs|j|j|j|�dS(N(R4RR(RR!((s*/usr/lib/python2.7/site-packages/screen.pytinsert�scCsAt|d|j�}t|d|j�}|j|d|dS(Ni(RRRR(RRR((s*/usr/lib/python2.7/site-packages/screen.pyR2�scCs|j|j|j�dS(N(R2RR(R((s*/usr/lib/python2.7/site-packages/screen.pytget�sc
Cst|d|j�}t|d|j�}t|d|j�}t|d|j�}||krp||}}n||kr�||}}ng}xht||d�D]S}d}x7t||d�D]"}|j||�}	||	}q�W|j|�q�W|S(s>This returns a list of lines representing the region.
        iR(RRRR
R2tappend(
RR$R%R&R'tscRRRR!((s*/usr/lib/python2.7/site-packages/screen.pyt
get_region�s cCs:t|jd|j�|_t|jd|j�|_dS(s6This keeps the cursor within the screen area.
        iN(RRRRR(R((s*/usr/lib/python2.7/site-packages/screen.pytcursor_constrain�sicCs ||_||_|j�dS(N(RRR:(RRR((s*/usr/lib/python2.7/site-packages/screen.pyR(�s		cCs|j||_|j�dS(N(RR:(Rtcount((s*/usr/lib/python2.7/site-packages/screen.pytcursor_back�scCs|j||_|j�dS(N(RR:(RR;((s*/usr/lib/python2.7/site-packages/screen.pyR*�scCs|j||_|j�dS(N(RR:(RR;((s*/usr/lib/python2.7/site-packages/screen.pytcursor_forward�scCs|j||_|j�dS(N(RR:(RR;((s*/usr/lib/python2.7/site-packages/screen.pyt	cursor_up�scCs3|j}|j�||jkr/|j�ndS(N(RR>R+(RR-((s*/usr/lib/python2.7/site-packages/screen.pytcursor_up_reverse�s	
cCs|j||�dS(sIdentical to Cursor Home.N(R((RRR((s*/usr/lib/python2.7/site-packages/screen.pytcursor_force_position�scCs|j�dS(sSave current cursor position.N(tcursor_save_attrs(R((s*/usr/lib/python2.7/site-packages/screen.pytcursor_save�scCs|j�dS(s-Restores cursor position after a Save Cursor.N(tcursor_restore_attrs(R((s*/usr/lib/python2.7/site-packages/screen.pyt
cursor_unsave�scCs|j|_|j|_dS(sSave current cursor position.N(RR	RR
(R((s*/usr/lib/python2.7/site-packages/screen.pyRAscCs|j|j|j�dS(s-Restores cursor position after a Save Cursor.N(R(R	R
(R((s*/usr/lib/python2.7/site-packages/screen.pyRCscCs@|jdkrd|_n|j|jkr<|j|_ndS(s6This keeps the scroll region within the screen region.iiN(RRR(R((s*/usr/lib/python2.7/site-packages/screen.pytscroll_constrainscCsd|_|j|_dS(s$Enable scrolling for entire display.iN(RRR(R((s*/usr/lib/python2.7/site-packages/screen.pyt
scroll_screens	cCs ||_||_|j�dS(s/Enable scrolling from row {start} to row {end}.N(RRRE(RR$R&((s*/usr/lib/python2.7/site-packages/screen.pytscroll_screen_rows"s		cCsI|jd}|jd}tj|j||!�|j|d|d+dS(sScroll display down one line.iN(RRtcopytdeepcopyR(Rtste((s*/usr/lib/python2.7/site-packages/screen.pytscroll_down*s

cCsI|jd}|jd}tj|j|d|d!�|j||+dS(sScroll display up one line.iN(RRRHRIR(RRJRK((s*/usr/lib/python2.7/site-packages/screen.pyR+3s

cCs&|j|j|j|j|j�dS(sOErases from the current cursor position to the end of the current
        line.N(R RRR(R((s*/usr/lib/python2.7/site-packages/screen.pyterase_end_of_line<scCs#|j|jd|j|j�dS(sQErases from the current cursor position to the start of the current
        line.iN(R RR(R((s*/usr/lib/python2.7/site-packages/screen.pyterase_start_of_lineCscCs#|j|jd|j|j�dS(sErases the entire current line.iN(R RR(R((s*/usr/lib/python2.7/site-packages/screen.pyR,JscCs1|j�|j|jdd|j|j�dS(sQErases the screen from the current line down to the bottom of the
        screen.iN(RMR RRR(R((s*/usr/lib/python2.7/site-packages/screen.pyt
erase_downPs
cCs.|j�|j|jddd|j�dS(sLErases the screen from the current line up to the top of the
        screen.iN(RNR RR(R((s*/usr/lib/python2.7/site-packages/screen.pyterase_upXs
cCs|j�dS(s,Erases the screen with the background color.N(R"(R((s*/usr/lib/python2.7/site-packages/screen.pyterase_screen`scCsdS(s#Sets a tab at the current position.N((R((s*/usr/lib/python2.7/site-packages/screen.pytset_tabfscCsdS(s#Clears tab at the current position.N((R((s*/usr/lib/python2.7/site-packages/screen.pyt	clear_tablscCsdS(sClears all tabs.N((R((s*/usr/lib/python2.7/site-packages/screen.pytclear_all_tabsrs(/t__name__t
__module__t__doc__RRRRRR"R R)R.R/R0R#R1R4R5R2R6R9R:R(R<R*R=R>R?R@RBRDRARCRERFRGRLR+RMRNR,RORPRQRRRSRT(((s*/usr/lib/python2.7/site-packages/screen.pyR(sX													
																											((RWRHtNULtENQtBELtBStHTtLFtVTtFFtCRtSOtSItXONtXOFFtCANtSUBtESCtDELtchrRRR(((s*/usr/lib/python2.7/site-packages/screen.pyt<module>s*	

https://t.me/AnonymousX5 - 2025