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 2527 by doda, Fri May 23 09:48:19 2008 UTC revision 2528 by doda, Sat May 24 08:26:44 2008 UTC
# Line 2204  void ControlSequence(BYTE b) Line 2204  void ControlSequence(BYTE b)
2204    
2205  void DeviceControl(BYTE b)  void DeviceControl(BYTE b)
2206  {  {
2207    if (ESCFlag && (b=='\\') || (b==ST))    if (ESCFlag && (b=='\\') || (b==ST && ts.KanjiCode!=IdSJIS))
2208    {    {
2209      ESCFlag = FALSE;      ESCFlag = FALSE;
2210      ParseMode = SavedMode;      ParseMode = SavedMode;
# Line 2249  void DeviceControl(BYTE b) Line 2249  void DeviceControl(BYTE b)
2249    
2250  void DCUserKey(BYTE b)  void DCUserKey(BYTE b)
2251  {  {
2252    if (ESCFlag && (b=='\\') || (b==ST))    if (ESCFlag && (b=='\\') || (b==ST && ts.KanjiCode!=IdSJIS))
2253    {    {
2254      if (! WaitKeyId) DefineUserKey(NewKeyId,NewKeyStr,NewKeyLen);      if (! WaitKeyId) DefineUserKey(NewKeyId,NewKeyStr,NewKeyLen);
2255      ESCFlag = FALSE;      ESCFlag = FALSE;
# Line 2306  void DCUserKey(BYTE b) Line 2306  void DCUserKey(BYTE b)
2306    
2307  void IgnoreString(BYTE b)  void IgnoreString(BYTE b)
2308  {  {
2309    if (ESCFlag && (b=='\\') || (b!=ESC && b<=US) || (b==ST))    if ((ESCFlag && (b=='\\')) ||
2310          (b<=US && b!=ESC && b!=HT) ||
2311          (b==ST && ts.KanjiCode!=IdSJIS))
2312      ParseMode = SavedMode;      ParseMode = SavedMode;
2313    
2314    if (b==ESC) ESCFlag = TRUE;    if (b==ESC) ESCFlag = TRUE;
# Line 2432  void XSequence(BYTE b) Line 2434  void XSequence(BYTE b)
2434                  }                  }
2435                  break;                  break;
2436            case ModeXsString:            case ModeXsString:
2437                  if (b == ST || b == '\a') { /* String Terminator */                  if ((b==ST && ts.KanjiCode!=IdSJIS) || b==BEL) { /* String Terminator */
2438                          StrBuff[StrLen] = '\0';                          StrBuff[StrLen] = '\0';
2439                          switch (Param[1]) {                          switch (Param[1]) {
2440                            case 0: /* Change window title and icon name */                            case 0: /* Change window title and icon name */
# Line 2476  void XSequence(BYTE b) Line 2478  void XSequence(BYTE b)
2478                  }                  }
2479                  break;                  break;
2480            case ModeXsColorSpec:            case ModeXsColorSpec:
2481                  if (b == ST || b == '\a') { /* String Terminator */                  if ((b==ST && ts.KanjiCode!=IdSJIS) || b==BEL) { /* String Terminator */
2482                          StrBuff[StrLen] = '\0';                          StrBuff[StrLen] = '\0';
2483                          if ((ts.ColorFlag & CF_XTERM256) && ColorNumber <= 255) {                          if ((ts.ColorFlag & CF_XTERM256) && ColorNumber <= 255) {
2484                                  if (strcmp(StrBuff, "?") == 0) {                                  if (strcmp(StrBuff, "?") == 0) {
# Line 2544  void XSequence(BYTE b) Line 2546  void XSequence(BYTE b)
2546            case ModeXsEsc:            case ModeXsEsc:
2547                  if (b == '\\') { /* String Terminator */                  if (b == '\\') { /* String Terminator */
2548                          XsParseMode = PrevMode;                          XsParseMode = PrevMode;
2549                          XSequence(ST);  //                      XSequence(ST);
2550                            XSequence(BEL);
2551                  }                  }
2552                  else { /* Other character -- invalid sequence */                  else { /* Other character -- invalid sequence */
2553                          ParseMode = ModeFirst;                          ParseMode = ModeFirst;

Legend:
Removed from v.2527  
changed lines
  Added in v.2528

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