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 6865 by doda, Wed Jul 19 16:48:12 2017 UTC revision 6913 by doda, Fri Aug 25 14:48:35 2017 UTC
# Line 827  void PrnParseControl(BYTE b) // printer Line 827  void PrnParseControl(BYTE b) // printer
827          case NUL:          case NUL:
828                  return;                  return;
829          case SO:          case SO:
830                  if (ts.EnableSOSI && ! DirectPrn) {                  if ((ts.ISO2022Flag & ISO2022_SO) && ! DirectPrn) {
831                          if ((ts.Language==IdJapanese) &&                          if ((ts.Language==IdJapanese) &&
832                              (ts.KanjiCode==IdJIS) &&                              (ts.KanjiCode==IdJIS) &&
833                              (ts.JIS7Katakana==1) &&                              (ts.JIS7Katakana==1) &&
# Line 840  void PrnParseControl(BYTE b) // printer Line 840  void PrnParseControl(BYTE b) // printer
840                  }                  }
841                  break;                  break;
842          case SI:          case SI:
843                  if (ts.EnableSOSI && ! DirectPrn) {                  if ((ts.ISO2022Flag & ISO2022_SI) && ! DirectPrn) {
844                          Glr[0] = 0; /* LS0 */                          Glr[0] = 0; /* LS0 */
845                          return;                          return;
846                  }                  }
# Line 967  void ParseControl(BYTE b) Line 967  void ParseControl(BYTE b)
967                  }                  }
968                  break;                  break;
969          case SO: /* LS1 */          case SO: /* LS1 */
970                  if (ts.EnableSOSI) {                  if (ts.ISO2022Flag & ISO2022_SO) {
971                          if ((ts.Language==IdJapanese) &&                          if ((ts.Language==IdJapanese) &&
972                              (ts.KanjiCode==IdJIS) &&                              (ts.KanjiCode==IdJIS) &&
973                              (ts.JIS7Katakana==1) &&                              (ts.JIS7Katakana==1) &&
# Line 980  void ParseControl(BYTE b) Line 980  void ParseControl(BYTE b)
980                  }                  }
981                  break;                  break;
982          case SI: /* LS0 */          case SI: /* LS0 */
983                  if (ts.EnableSOSI) {                  if (ts.ISO2022Flag & ISO2022_SI) {
984                          Glr[0] = 0;                          Glr[0] = 0;
985                  }                  }
986                  break;                  break;
# Line 1030  void ParseControl(BYTE b) Line 1030  void ParseControl(BYTE b)
1030                  CursorUpWithScroll();                  CursorUpWithScroll();
1031                  break;                  break;
1032          case SS2:          case SS2:
1033                  GLtmp = 2;                  if (ts.ISO2022Flag & ISO2022_SS2) {
1034                  SSflag = TRUE;                          GLtmp = 2;
1035                            SSflag = TRUE;
1036                    }
1037                  break;                  break;
1038          case SS3:          case SS3:
1039                  GLtmp = 3;                  if (ts.ISO2022Flag & ISO2022_SS3) {
1040                  SSflag = TRUE;                          GLtmp = 3;
1041                            SSflag = TRUE;
1042                    }
1043                  break;                  break;
1044          case DCS:          case DCS:
1045                  ClearParams();                  ClearParams();
# Line 1374  void ParseEscape(BYTE b) /* b is the fin Line 1378  void ParseEscape(BYTE b) /* b is the fin
1378                          CursorUpWithScroll();                          CursorUpWithScroll();
1379                          break;                          break;
1380                  case 'N': /* SS2 */                  case 'N': /* SS2 */
1381                          GLtmp = 2;                          if (ts.ISO2022Flag & ISO2022_SS2) {
1382                          SSflag = TRUE;                                  GLtmp = 2;
1383                                    SSflag = TRUE;
1384                            }
1385                          break;                          break;
1386                  case 'O': /* SS3 */                  case 'O': /* SS3 */
1387                          GLtmp = 3;                          if (ts.ISO2022Flag & ISO2022_SS3) {
1388                          SSflag = TRUE;                                  GLtmp = 3;
1389                                    SSflag = TRUE;
1390                            }
1391                          break;                          break;
1392                  case 'P': /* DCS */                  case 'P': /* DCS */
1393                          ClearParams();                          ClearParams();
# Line 1416  void ParseEscape(BYTE b) /* b is the fin Line 1424  void ParseEscape(BYTE b) /* b is the fin
1424                  case 'g': /* Visual Bell (screen original?) */                  case 'g': /* Visual Bell (screen original?) */
1425                          RingBell(IdBeepVisual);                          RingBell(IdBeepVisual);
1426                          break;                          break;
1427                  case 'n': Glr[0] = 2; break; /* LS2 */                  case 'n': /* LS2 */
1428                  case 'o': Glr[0] = 3; break; /* LS3 */                          if (ts.ISO2022Flag & ISO2022_LS2) {
1429                  case '|': Glr[1] = 3; break; /* LS3R */                                  Glr[0] = 2;
1430                  case '}': Glr[1] = 2; break; /* LS2R */                          }
1431                  case '~': Glr[1] = 1; break; /* LS1R */                          break;
1432                    case 'o': /* LS3 */
1433                            if (ts.ISO2022Flag & ISO2022_LS3) {
1434                                    Glr[0] = 3;
1435                            }
1436                            break;
1437                    case '|': /* LS3R */
1438                            if (ts.ISO2022Flag & ISO2022_LS3R) {
1439                                    Glr[1] = 3;
1440                            }
1441                            break;
1442                    case '}': /* LS2R */
1443                            if (ts.ISO2022Flag & ISO2022_LS2R) {
1444                                    Glr[1] = 2;
1445                            }
1446                            break;
1447                    case '~': /* LS1R */
1448                            if (ts.ISO2022Flag & ISO2022_LS1R) {
1449                                    Glr[1] = 1;
1450                            }
1451                            break;
1452                  }                  }
1453                  break;                  break;
1454                  /* end of case Icount=0 */                  /* end of case Icount=0 */
# Line 5096  BOOL ParseFirstJP(BYTE b) Line 5124  BOOL ParseFirstJP(BYTE b)
5124          else if (b==0x8E) { // SS2          else if (b==0x8E) { // SS2
5125                  switch (ts.KanjiCode) {                  switch (ts.KanjiCode) {
5126                  case IdEUC:                  case IdEUC:
5127                          EUCkanaIn = TRUE;                          if (ts.ISO2022Flag & ISO2022_SS2) {
5128                                    EUCkanaIn = TRUE;
5129                            }
5130                          break;                          break;
5131                  case IdUTF8:                  case IdUTF8:
5132                  case IdUTF8m:                  case IdUTF8m:
# Line 5109  BOOL ParseFirstJP(BYTE b) Line 5139  BOOL ParseFirstJP(BYTE b)
5139          else if (b==0x8F) { // SS3          else if (b==0x8F) { // SS3
5140                  switch (ts.KanjiCode) {                  switch (ts.KanjiCode) {
5141                  case IdEUC:                  case IdEUC:
5142                          EUCcount = 2;                          if (ts.ISO2022Flag & ISO2022_SS3) {
5143                          EUCsupIn = TRUE;                                  EUCcount = 2;
5144                                    EUCsupIn = TRUE;
5145                            }
5146                          break;                          break;
5147                  case IdUTF8:                  case IdUTF8:
5148                  case IdUTF8m:                  case IdUTF8m:

Legend:
Removed from v.6865  
changed lines
  Added in v.6913

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