'; termStringEnd=''; } else if (orderubdivs) { s = ' n'}; termStringStart=''; termStringEnd=''; }; writeElement(termDiv,s); setDivXY(termDiv,conf_term_x,conf_term_y); setDivVisibility(termDiv,1); window.status='' }
function termDisplay(r) { var s=termStringStart; var curStyle=0; for (var i=0; i var c=term[r][i]; var cs=termStyle[r][i]; if (cs!=curStyle) { if (curStyle) { for (var k=termStyles.length-1; k>=0; k--) { var st=termStyles [케이]; if (curStyle&st) s =termStyleClose[st]; } }; curStyle=cs; for (var k=0; k var st=termStyles[k]; if (curStyle&st) s =termStyleOpen[st]; } }; s = (termSpecials[c])? termSpecials[c] : String.fromCharCode(c); }; if (curStyle>0) { for (var k=termStyles.length-1; k>=0; k--) { var st=termStyles[k]; if (curStyle&st) s =termStyleClose[st]; } }; s =termStringEnd; writeElement('term_' r,s,termDocNS4) }
function termGuiReady() { ready=true; if (termGuiElementReady(termDiv, self.document)) { for (var r=0; r if (termGuiElementReady('term_' r,termDocNS4)==false) { 준비=false; 중단 } } } else ready=false; 반환 준비 }
함수 cursorKbdLeft() { keyHandler({which:28}) }
함수 cursorKbdRight() { keyHandler({which:29}) }
함수 termKbdBackspace() { keyHandler({which:8}) }
함수 termKbdEsc() { keyHandler({which:27}) }
함수 termKbdClear() { if ((!cnslLock) && (!cnslRawMode)) cnslReset(); }
// UI 버튼 반복
function repeatSet(cmd,on) { if (repeatTimer) clearTimeout(repeatTimer); repeatTimer=setTimeout('repeatDo("' cmd '")',conf_repeat_delay1); }
function repeatClear() { if (repeatTimer) clearTimeout(repeatTimer); }
function repeatDo(cmd) { if (repeatTimer) clearTimeout(repeatTimer); if (cmd=='left') cursorKbdLeft() else if (cmd=='right') cursorKbdRight() else if (cmd=='미친, js_javascript 기술로 작성된 운영 체제가 있습니다') termKbdBackspace(); repeatTimer=setTimeout('repeatDo("' cmd '")',conf_repeat_delay2); }
// 기본 동적
함수 writeElement(e,t,d) { if (document.layers) { var doc=( 디)? d: self.document; doc.layers[e].document.open(); doc.layers[e].document.write(t); doc.layers[e].document.close() } else if (document.getElementById) { var obj=document.getElementById(e); obj.innerHTML=t } else if (document.all) { document.all[e].innerHTML=t } }
함수 setDivXY(d,x,y) { if (document.layers) { document.layers[d].moveTo(x,y) } else if(document.getElementById) { var obj=document.getElementById(d); obj.style.left=x 'px'; obj.style.top=y 'px' } else if (document.all) { document.all[d].style.left=x 'px'; document.all[d].style.top=y 'px' } }
function setDivVisibility(d,v) { if (document.layers) { document.layers[d].visibility= (v)? '표시':'숨기기'; } else if (document.getElementById) { var obj=document.getElementById(d); obj.style.visibility= (v)? '표시':'숨김'; } else if (document.all) { document.all[d].style.visibility=(v)? '표시':'숨김'; } }
함수 termGuiElementReady(e,d) { if (document.layers) { var doc=(d)? d: self.document; 반품 ((doc) && (doc.layers[e]))? true:false } else if (document.getElementById) { 반환(document.getElementById(e))? true:false } else if (document.all) { return(document.all[e])? true:false } else return false }
//eof
|
|