V Qc@sddlZddlZdZdZdZdZdZdZdZd Z d Z d Z d Z d Z dZdZdZdZdZdZdZdZejedS(iNs Thomas Gellekum cCsVtjrR|d}tj||t|jtj|jtj|ndS(Ni(tcursest has_colorst init_pairtmy_bgtattrofftA_COLORtattront color_pair(twintcolortn((s(/usr/lib64/python2.7/Demo/curses/xmas.pyt set_colors   cCs)tjr%|jtjdndS(Ni(RRtattrsetR(R((s(/usr/lib64/python2.7/Demo/curses/xmas.pyt unset_color&s cCs=tj|tjdkr9tjtjdndS(Nii(Rtnapmststdscrtgetchtbeeptsystexit(tmsecs((s(/usr/lib64/python2.7/Demo/curses/xmas.pytlook_out*s  cCsx0tddD]}tj|dtdqWx0tddD]}tjd|tdqCWx0tddD]}tjd |tdqvWdS( Niiit|iiPit_i(trangeRtaddchtord(tytx((s(/usr/lib64/python2.7/Demo/curses/xmas.pytboxit0scCstjddtdtjddtdtjddtdtjddtdtjd dtd tjd dtd tjd dtdtjddtddS(NiitSitEitAi i tOitNit'i(RRR(((s(/usr/lib64/python2.7/Demo/curses/xmas.pytseas<scCstjddtdtjddtdtjddtdtjddtdtjddtd tjd dtd tjd dtd tjddtdtjddtddS(NiitGtRiRi i tTi tIiR"iiR(RRR(((s(/usr/lib64/python2.7/Demo/curses/xmas.pytgreetHscCstjddtdS(Nii (RtaddstrtFROMWHO(((s(/usr/lib64/python2.7/Demo/curses/xmas.pytfromwhoUscCs'tttjtjddtdtjddtdtjddtdtjddtdtjd dtdtjd d tdtjd d tdtjd d tdtjdd tdtjdd tdtjddtdtjd dtdtjddtdtjddtdtjddtdtjddtdtjd dtdtjd dtdtjd dtdtjd dtdtjddtdtjddtdtjddtdtjd dtdtjddtdtjddtdtjd d tdtjd dtdtjdddtjdddtjdddtttjt jdS(Nii t/iii ii iiiii i s\iiiiiiiiRis//////////// \\\\\\\\\\\\s| |s|_|( R ttreescrnRt COLOR_GREENRRR*R trefresht w_del_msg(((s(/usr/lib64/python2.7/Demo/curses/xmas.pyttreeYsH   cCstjttttjtjddtdtjddtdtjddtdtjddtdtjdd tdtjdd tdtjd d tdtjd d tdtjddtdtjdd tdtjddtdtjddtdtjddtdtjddtdtjddtdtjddtdtttj t j dS(Nii t@iiiiiiiiiii ii iii ii( R.toverlayt treescrn2R Rt COLOR_BLUERRR R0R1(((s(/usr/lib64/python2.7/Demo/curses/xmas.pytballss,    cCsltjtjtjBtttjtjddtdtj t ttj t j dS(Nii t*( R5R RtA_BOLDtA_BLINKR t COLOR_YELLOWRRtstandendR R0R1(((s(/usr/lib64/python2.7/Demo/curses/xmas.pytstars    cCstjtjtjBtttjtjddtdtjddtdtjddtdtj tjtjBt ttj t j dS(Nii s'i t:i t.( R5R RR9R:R t COLOR_WHITERRRR R0R1(((s(/usr/lib64/python2.7/Demo/curses/xmas.pytstrng1s   cCstjtjtjBtttjtjddtdtjddtdtjddtdtjddtd tjd d tdtjd d tdtj tjtjBt ttj t j dS( Niis'i R>i R?i t,ii i ( R5R RR9R:R R@RRRR R0R1(((s(/usr/lib64/python2.7/Demo/curses/xmas.pytstrng2s   cCs(tjtjtjBtttjtjddtdtjddtdtjddtdtjddtd tjd d tdtjd d tdtjd d tdtjd dtd tj tjtjBt ttj t j dS(Niis'iR>iR?i RBii i i i ( R5R RR9R:R R@RRRR R0R1(((s(/usr/lib64/python2.7/Demo/curses/xmas.pytstrng3s   cCstjtjtjBtttjtjddtdtjddtdtjddtdtjddtd tjd d tdtjd d tdtjd d tdtjd d td tjd dtdtjd dtdtjd dtdtjd dtd tjd dtdtj tjtjBt ttj t j dS(Ni is'iR>iR?iRBi i i i iiii( R5R RR9R:R R@RRRR R0R1(((s(/usr/lib64/python2.7/Demo/curses/xmas.pytstrng4s(   cCs5tjtjtjBtttjtjddtdtjddtdtjddtdtjddtd tjd d tdtjd d tdtjd d tdtjd d td tj tjtjBt ttj t tj tj dS(Ni is'iR>iR?iRBi iii (R5R RR9R:R R@RRRR R4R.R0R1(((s(/usr/lib64/python2.7/Demo/curses/xmas.pytstrng5s     cCsEtjxtdD]}|dkrNtjttjtjPn|dkrtjttjtjPn|dkrtjttjtjPnb|dkrt jttjtjPn1|dkrt jttjtjPntjqWt jttjtjdS(Niiiiii( t treescrn8ttouchwinRt treescrn3R4R0R1t treescrn4t treescrn5t treescrn6t treescrn7R.(tcycle((s(/usr/lib64/python2.7/Demo/curses/xmas.pytblinkits@                        cCs2|j|||jtjtddS(Ni(tmvwinR0R1R(RRR((s(/usr/lib64/python2.7/Demo/curses/xmas.pyt deer_step7s  cCskd}xtdddD]}|dkr4d}nxltddD][}tj||tdtjtjtjtjtjtd qDWqWd }xt|dd dD]}xtddD]}|d kr[d }ytj||td Wnt j k r%nXtjtjtjtjtjqtj||td tjtjtjtjtjqWqWd}xtd dD]}t j t jtjxtddD]~}t t||t t||t t||t t||t t||t j t jtj|d 8}qWqWd}xtddD]}tj tjtjxtd D]~}t t||t t||t t||t t||t t||tj tjtj|d 8}qWqWtdd}xtddD]}t t||t t||t t||t t||t t||t t||t t||t t||qkW|d8}xtddD]v}t t||t t||t t||t t||t t||t t||t t||qWt t||xt|dD]}xtdd D]v}t t||t t||t t||t t||t t||t t||t t||qWt t||qW|d8}t t||dS(NiiFi>iiBiiR?i2ii8iR8i:ii#i i,iii(Rtdotdeer0RRR0R1teraseRt stardeer0Rterrortlildeer0RHRQtlildeer3tlildeer2tlildeer1tmiddeer0tmiddeer3tmiddeer2tmiddeer1tbigdeer4tbigdeer3tbigdeer2tbigdeer1tbigdeer0t lookdeer4t lookdeer3t lookdeer2t lookdeer1t lookdeer0(ty_postx_postlooper((s(/usr/lib64/python2.7/Demo/curses/xmas.pytreindeer=s                               cCs<|atjatjddddatjddddatjddddatjddddatjdddda tjdddda tjdddda tjdddda tjdddda tjdd ddatjd dddatjd dddatjd dddatjd dddatjd d ddatjdd ddatjdd ddatjdd ddatjddddatjddddatjddddatjddddatjddddatjddddatjddddatjddddatjddddatjdddda tjdddda!tjdddda"yt"j#dddWntj$k r nXyt!j#dddWntj$k r:nXtj%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&dEt j%d/dIt&dEt j%ddt&dEt j%d1d"t&dEt j%d1dt&dEt j%dFdFt&dEtj:t t j%dd t&dEt j%d"d t&dEt j%d d&t&dEt j%ddt&dEt j%d1d+t&dEt j%ddFt&dGt j%ddFt&dEt j%d dHt&dEt j%d"d/t&dEt j%d d t&dEt j%dd1t&dEt j%d/dt&dEt j%ddFt&dEt j%d1dt&dEt j%d1d&t&dEt j%dFdIt&dEt-dDt=t!j+t!j,t"j,t-dJxt>ddD] }t?q$WqNdS(KNiiii5iGiiii8iiii*i iiiii<sHit any key to quitsH A P P Y H O L I D A Y StVR3tt~RRt0t(t=it)is\R-iiiRt^iis^~~~~~~~~// ~~Us ( \_____( /s( ) /i s\\ /i s\>/>s (( )____( /s( / |s\/ |s|> |>s ( ()_____( /s / / /s |/ \s/> \>s ( )______( /s (/ \sv___= ----^s \/ \/s\Y/ \Y/s\=/s^\o o/^s//( )s^~~~~~~~~// \O/it i R8i ii(@RRt COLOR_BLACKRtnewwinR.R5RIRJRKRLRMRGRRRTRVRYRXRWRZR]R\R[RbRaR`R_R^RgRfReRdRct w_holidayR1R*RURRtcbreaktnodelaytclearRSRHR0RRR$R)R,R2R7R=RARCRDRERFR4tstandoutR<RkRRO(Rti((s(/usr/lib64/python2.7/Demo/curses/xmas.pytmains                                     (RRR+R R RRR$R)R,R2R7R=RARCRDRERFRORQRkR~twrapper(((s(/usr/lib64/python2.7/Demo/curses/xmas.pyts.       ,       '  z