Diffstat (limited to 'noncore/apps/opie-console/vt102emulation.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/vt102emulation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/apps/opie-console/vt102emulation.cpp b/noncore/apps/opie-console/vt102emulation.cpp index dc977f5..2220f4e 100644 --- a/noncore/apps/opie-console/vt102emulation.cpp +++ b/noncore/apps/opie-console/vt102emulation.cpp @@ -577,97 +577,97 @@ void Vt102Emulation::tau( int token, int p, int q ) //FIXME: when changing between vt52 and ansi mode evtl do some resetting. case TY_VT52__('A' ) : scr->cursorUp ( 1); break; //VT52 case TY_VT52__('B' ) : scr->cursorDown ( 1); break; //VT52 case TY_VT52__('C' ) : scr->cursorRight ( 1); break; //VT52 case TY_VT52__('D' ) : scr->cursorLeft ( 1); break; //VT52 case TY_VT52__('F' ) : setAndUseCharset (0, '0'); break; //VT52 case TY_VT52__('G' ) : setAndUseCharset (0, 'B'); break; //VT52 case TY_VT52__('H' ) : scr->setCursorYX (1,1 ); break; //VT52 case TY_VT52__('I' ) : scr->reverseIndex ( ); break; //VT52 case TY_VT52__('J' ) : scr->clearToEndOfScreen ( ); break; //VT52 case TY_VT52__('K' ) : scr->clearToEndOfLine ( ); break; //VT52 case TY_VT52__('Y' ) : scr->setCursorYX (p-31,q-31 ); break; //VT52 case TY_VT52__('Z' ) : reportTerminalType ( ); break; //VT52 case TY_VT52__('<' ) : setMode (MODE_Ansi ); break; //VT52 case TY_VT52__('=' ) : setMode (MODE_AppKeyPad); break; //VT52 case TY_VT52__('>' ) : resetMode (MODE_AppKeyPad); break; //VT52 default : ReportErrorToken(); break; }; } /* ------------------------------------------------------------------------- */ /* */ /* Terminal to Host protocol */ /* */ /* ------------------------------------------------------------------------- */ /* Outgoing bytes originate from several sources: - Replies to Enquieries. - Mouse Events - Keyboard Events */ /*! */ void Vt102Emulation::sendString(const char* s) { QByteArray tmp; tmp.setRawData( s, strlen( s )); emit sndBlock( tmp); } -void Vt102Emulation::sendString(const QByteArray s) +void Vt102Emulation::sendString(const QByteArray& s) { emit sndBlock( s ); } // Replies ----------------------------------------------------------------- -- // This section copes with replies send as response to an enquiery control code. /*! */ void Vt102Emulation::reportCursorPosition() { char tmp[20]; sprintf(tmp,"\033[%d;%dR",scr->getCursorY()+1,scr->getCursorX()+1); sendString(tmp); } /* What follows here is rather obsolete and faked stuff. The correspondent enquieries are neverthenless issued. */ /*! */ void Vt102Emulation::reportTerminalType() { //FIXME: should change? if (getMode(MODE_Ansi)) // sendString("\033[?1;2c"); // I'm a VT100 with AP0 //FIXME: send only in response to ^[[0c sendString("\033[>0;115;0c"); // I'm a VT220 //FIXME: send only in response to ^[[>c else sendString("\033/Z"); // I'm a VT52 } void Vt102Emulation::reportTerminalParms(int p) // DECREPTPARM { char tmp[100]; sprintf(tmp,"\033[%d;1;1;112;112;1;0x",p); // not really true. sendString(tmp); } /*! */ void Vt102Emulation::reportStatus() { sendString("\033[0n"); //VT100. Device status report. 0 = Ready. |