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 5588 by doda, Mon May 19 05:19:51 2014 UTC revision 5589 by doda, Mon May 19 08:03:12 2014 UTC
# Line 767  void PutKanji(BYTE b) Line 767  void PutKanji(BYTE b)
767  void PutDebugChar(BYTE b)  void PutDebugChar(BYTE b)
768  {  {
769          static BYTE buff[3];          static BYTE buff[3];
770          int i = 0;          int i;
771            BOOL svInsertMode, svAutoWrapMode;
772          if (DebugFlag!=DEBUG_FLAG_NONE) {          BYTE svCharAttr;
773    
774            if (DebugFlag!=DEBUG_FLAG_NOUT) {
775                    svInsertMode = InsertMode;
776                    svAutoWrapMode = AutoWrapMode;
777                  InsertMode = FALSE;                  InsertMode = FALSE;
778                  AutoWrapMode = TRUE;                  AutoWrapMode = TRUE;
779    
780                    svCharAttr = CharAttr.Attr;
781                    if (CharAttr.Attr != AttrDefault) {
782                            UpdateStr();
783                            CharAttr.Attr = AttrDefault;
784                    }
785    
786                  if (DebugFlag==DEBUG_FLAG_HEXD) {                  if (DebugFlag==DEBUG_FLAG_HEXD) {
787                          _snprintf(buff, 3, "%02X", (unsigned int) b);                          _snprintf(buff, 3, "%02X", (unsigned int) b);
788    
789                          for ( ; i<2; i++)                          for (i=0; i<2; i++)
790                                  PutChar(buff[i]);                                  PutChar(buff[i]);
791                          PutChar(' ');                          PutChar(' ');
792                  }                  }
# Line 803  void PutDebugChar(BYTE b) Line 813  void PutDebugChar(BYTE b)
813                                  PutChar(b);                                  PutChar(b);
814                  }                  }
815    
816                  if (CharAttr.Attr != AttrDefault) {                  if (CharAttr.Attr != svCharAttr) {
817                          UpdateStr();                          UpdateStr();
818                          CharAttr.Attr = AttrDefault;                          CharAttr.Attr = svCharAttr;
819                  }                  }
820                    InsertMode = svInsertMode;
821                    AutoWrapMode = svAutoWrapMode;
822          }          }
823  }  }
824    

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

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