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 3489 by doda, Mon Jun 15 06:47:40 2009 UTC revision 3491 by doda, Mon Jun 15 08:20:51 2009 UTC
# Line 26  Line 26 
26  #include "vtterm.h"  #include "vtterm.h"
27    
28  #define MAPSIZE(x) (sizeof(x)/sizeof((x)[0]))  #define MAPSIZE(x) (sizeof(x)/sizeof((x)[0]))
29    #define Accept8BitCtrl ((ts.TerminalID>=IdVT220J) && (ts.TermFlag & TF_ACCEPT8BITCTRL))
30    
31    /* Parsing modes */    /* Parsing modes */
32  #define ModeFirst 0  #define ModeFirst 0
# Line 667  void PrnParseControl(BYTE b) // printer Line 668  void PrnParseControl(BYTE b) // printer
668        WriteToPrnFile(0,TRUE); // flush prn buff        WriteToPrnFile(0,TRUE); // flush prn buff
669        return;        return;
670      case CSI:      case CSI:
671        if ((ts.TerminalID<IdVT220J) ||        if (! Accept8BitCtrl) {
           ((ts.TermFlag & TF_ACCEPT8BITCTRL)==0))  
       {  
672          PutChar(b); /* Disp C1 char in VT100 mode */          PutChar(b); /* Disp C1 char in VT100 mode */
673          return;          return;
674        }        }
# Line 699  void ParseControl(BYTE b) Line 698  void ParseControl(BYTE b)
698      /* English mode */      /* English mode */
699      if (ts.Language==IdEnglish)      if (ts.Language==IdEnglish)
700      {      {
701        if ((ts.TerminalID<IdVT220J) ||        if (!Accept8BitCtrl) {
           ((ts.TermFlag & TF_ACCEPT8BITCTRL)==0))  
       {  
702          PutChar(b); /* Disp C1 char in VT100 mode */          PutChar(b); /* Disp C1 char in VT100 mode */
703          return;          return;
704        }        }
# Line 2729  void XSequence(BYTE b) Line 2726  void XSequence(BYTE b)
2726                  }                  }
2727                  break;                  break;
2728            case ModeXsString:            case ModeXsString:
2729                  if ((b==ST && ts.KanjiCode!=IdSJIS) || b==BEL) { /* String Terminator */                  if ((b==ST && Accept8BitCtrl && !(ts.Language==IdJapanese && ts.KanjiCode==IdSJIS)) || b==BEL) { /* String Terminator */
2730                          StrBuff[StrLen] = '\0';                          StrBuff[StrLen] = '\0';
2731                          switch (Param[1]) {                          switch (Param[1]) {
2732                            case 0: /* Change window title and icon name */                            case 0: /* Change window title and icon name */
# Line 2775  void XSequence(BYTE b) Line 2772  void XSequence(BYTE b)
2772                  }                  }
2773                  break;                  break;
2774            case ModeXsColorSpec:            case ModeXsColorSpec:
2775                  if ((b==ST && ts.KanjiCode!=IdSJIS) || b==BEL) { /* String Terminator */                  if ((b==ST && Accept8BitCtrl && !(ts.Language==IdJapanese && ts.KanjiCode==IdSJIS)) || b==BEL) { /* String Terminator */
2776                          StrBuff[StrLen] = '\0';                          StrBuff[StrLen] = '\0';
2777                          if ((ts.ColorFlag & CF_XTERM256) && ColorNumber <= 255) {                          if ((ts.ColorFlag & CF_XTERM256) && ColorNumber <= 255) {
2778                                  if (strcmp(StrBuff, "?") == 0) {                                  if (strcmp(StrBuff, "?") == 0) {

Legend:
Removed from v.3489  
changed lines
  Added in v.3491

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