Develop and Download Open Source Software

Browse Subversion Repository

Diff of /trunk/teraterm/teraterm/vtterm.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 4124 by doda, Mon Oct 11 11:32:18 2010 UTC revision 4162 by doda, Tue Nov 23 16:10:38 2010 UTC
# Line 390  void SendOSCstr(char *str, int len) { Line 390  void SendOSCstr(char *str, int len) {
390    
391  }  }
392    
393    void SendDCSstr(char *str, int len) {
394            int l;
395    
396            if (str == NULL || len < 0)
397                    return;
398    
399            if (len == 0) {
400                    l = strlen(str);
401            }
402            else {
403                    l = len;
404            }
405    
406            if (Send8BitMode) {
407                    CommBinaryOut(&cv,"\220", 1);
408                    CommBinaryOut(&cv, str, l);
409                    CommBinaryOut(&cv,"\234", 1);
410            }
411            else {
412                    CommBinaryOut(&cv,"\033P", 2);
413                    CommBinaryOut(&cv, str, l);
414                    CommBinaryOut(&cv,"\033\\", 2);
415            }
416    
417    }
418    
419  void BackSpace()  void BackSpace()
420  {  {
421    if (CursorX == 0)    if (CursorX == 0)
# Line 2084  void CSSetAttr()               // SGR Line 2110  void CSSetAttr()               // SGR
2110      }      }
2111    }    }
2112    
2113      void CSEQ(BYTE b)
2114      {
2115        switch (b) {
2116          case 'c': /* Tertiary terminal report (Tertiary DA) */
2117            if (Param[1] < 1) {
2118              SendDCSstr("!|FFFFFFFF", 0);
2119            }
2120            break;
2121        }
2122      }
2123    
2124    void CSGT(BYTE b)    void CSGT(BYTE b)
2125    {    {
2126      switch (b) {      switch (b) {
# Line 2798  void ParseCS(BYTE b) /* b is the final c Line 2835  void ParseCS(BYTE b) /* b is the final c
2835              case 'u': RestoreCursor(); break;           // RCP (Restore cursor (ANSI.SYS/SCO))              case 'u': RestoreCursor(); break;           // RCP (Restore cursor (ANSI.SYS/SCO))
2836            } /* of case Prv=0 */            } /* of case Prv=0 */
2837            break;            break;
2838            /* private parameter = '=' */
2839            case '=': CSEQ(b); break;
2840          /* private parameter = '>' */          /* private parameter = '>' */
2841          case '>': CSGT(b); break;          case '>': CSGT(b); break;
2842          /* private parameter = '?' */          /* private parameter = '?' */

Legend:
Removed from v.4124  
changed lines
  Added in v.4162

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26