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 5572 by yutakapon, Sun Apr 20 11:05:42 2014 UTC revision 5588 by doda, Mon May 19 05:19:51 2014 UTC
# Line 770  void PutDebugChar(BYTE b) Line 770  void PutDebugChar(BYTE b)
770          int i = 0;          int i = 0;
771    
772          if (DebugFlag!=DEBUG_FLAG_NONE) {          if (DebugFlag!=DEBUG_FLAG_NONE) {
773    InsertMode = FALSE;                  InsertMode = FALSE;
774    AutoWrapMode = TRUE;                  AutoWrapMode = TRUE;
775    
776            if (DebugFlag==DEBUG_FLAG_HEXD) {                  if (DebugFlag==DEBUG_FLAG_HEXD) {
777                  _snprintf(buff,3,"%02X",(unsigned int) b);                          _snprintf(buff, 3, "%02X", (unsigned int) b);
778    
779                  for (;i<2;i++)                          for ( ; i<2; i++)
780                          PutChar(buff[i]);                                  PutChar(buff[i]);
781                  PutChar(' ');                          PutChar(' ');
782            }                  }
783            else if (DebugFlag==DEBUG_FLAG_NORM) {                  else if (DebugFlag==DEBUG_FLAG_NORM) {
784    
785    if ((b & 0x80) == 0x80)                          if ((b & 0x80) == 0x80) {
786    {                                  UpdateStr();
787      UpdateStr();                                  CharAttr.Attr = AttrReverse;
788      CharAttr.Attr = AttrReverse;                                  b = b & 0x7f;
789      b = b & 0x7f;                          }
790    }  
791                            if (b<=US) {
792    if (b<=US)                                  PutChar('^');
793    {                                  PutChar((char)(b+0x40));
794      PutChar('^');                          }
795      PutChar((char)(b+0x40));                          else if (b==DEL) {
796    }                                  PutChar('<');
797    else if (b==DEL)                                  PutChar('D');
798    {                                  PutChar('E');
799      PutChar('<');                                  PutChar('L');
800      PutChar('D');                                  PutChar('>');
801      PutChar('E');                          }
802      PutChar('L');                          else
803      PutChar('>');                                  PutChar(b);
804    }                  }
805    else  
806      PutChar(b);                  if (CharAttr.Attr != AttrDefault) {
807            }                          UpdateStr();
808                            CharAttr.Attr = AttrDefault;
809    if (CharAttr.Attr != AttrDefault)                  }
   {  
     UpdateStr();  
     CharAttr.Attr = AttrDefault;  
   }  
810          }          }
811  }  }
812    

Legend:
Removed from v.5572  
changed lines
  Added in v.5588

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