;ò ÖMâ>c@s\dZdkZdkZdkZdkZdkZdkZdkZdfd„ƒYZdS(sCurses support.NsCursescBsštZdZd„Zd„Zd„Zd„Zd„Zei Z Z Z d„Z d„ZeZd„Zd „Zd „Zd „Zd „Zd „ZRS(sSimple Curses based interface.cCsµ||_d|_d|_d|_titii ƒƒ|_ t i ƒ|_ |i iƒ\}}t i|d|ddƒ|_|iidƒt id||ddƒ|_dS(Nii(sselfs loginCallbacks login_kills stayOnlinesatPromptstermioss tcgetattrssyssstdinsfilenos origStatescursessinitscrsstdscrsgetmaxyxsysxsnewwinsoutwinsscrolloks promptwin(sselfsysx((sA/mnt/gmirror/ports/games/ptkei/work/ptkei-1.18.1/src/empCurses.pys__init__"s    cCs4|iiƒ|iidd|ƒ|iiƒdS(s4Set the prompt window to the standard empire prompt.iN(sselfs promptwinsclearsaddstrspromptsrefresh(sselfsprompt((sA/mnt/gmirror/ports/games/ptkei/work/ptkei-1.18.1/src/empCurses.pys setprompt/s cCsI|io|ii|ƒn(|iidtiƒ|ƒd|_dS(s2empQueue handler: Note the beginning of a command.s iN(sselfsatPromptsoutwinsaddstrscmdsempDbs GetPrompt(sselfscmd((sA/mnt/gmirror/ports/games/ptkei/work/ptkei-1.18.1/src/empCurses.pysBegin6s  cCs!|iid|ƒd|_dS(s0empQueue handler: Process a line of server data.s iN(sselfsoutwinsaddstrsmsgsatPrompt(sselfsmsg((sA/mnt/gmirror/ports/games/ptkei/work/ptkei-1.18.1/src/empCurses.pysdata>scCs:tiƒ}|iid|ƒ|i|ƒd|_dS(s,empQueue handler: Note the end of a command.s iN(sempDbs GetPromptspsselfsoutwinsaddstrs setpromptsatPrompt(sselfscmdsp((sA/mnt/gmirror/ports/games/ptkei/work/ptkei-1.18.1/src/empCurses.pysEndPs   cCsEtiƒ}|idjo|iid|ƒn|i|ƒdS(s8empQueue handler: Process an asynchronous prompt update.is N(sempDbs GetPromptspsselfsatPromptsoutwinsaddstrs setprompt(sselfsp((sA/mnt/gmirror/ports/games/ptkei/work/ptkei-1.18.1/src/empCurses.pysinformYs  cCs!|iid|ƒd|_dS(s7empQueue handler: Process an asynchronous line of data.s iN(sselfsoutwinsaddstrsmsgsatPrompt(sselfsmsg((sA/mnt/gmirror/ports/games/ptkei/work/ptkei-1.18.1/src/empCurses.pysflash`scCs”|GH|iiitijoœtid}t d|dƒ}|o||d