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 3491 by doda, Mon Jun 15 08:20:51 2009 UTC revision 3637 by yutakapon, Thu Oct 8 16:38:28 2009 UTC
# Line 603  void PutKanji(BYTE b) Line 603  void PutKanji(BYTE b)
603    
604  void PutDebugChar(BYTE b)  void PutDebugChar(BYTE b)
605  {  {
606            static BYTE buff[3];
607            int i = 0;
608    
609            if (DebugFlag!=DEBUG_FLAG_NONE) {
610    InsertMode = FALSE;    InsertMode = FALSE;
611    AutoWrapMode = TRUE;    AutoWrapMode = TRUE;
612    
613              if (DebugFlag==DEBUG_FLAG_HEXD) {
614                    _snprintf(buff,3,"%02X",(unsigned int) b);
615    
616                    for (;i<2;i++)
617                            PutChar(buff[i]);
618                    PutChar(' ');
619              }
620              else if (DebugFlag==DEBUG_FLAG_NORM) {
621    
622    if ((b & 0x80) == 0x80)    if ((b & 0x80) == 0x80)
623    {    {
624      UpdateStr();      UpdateStr();
# Line 628  void PutDebugChar(BYTE b) Line 641  void PutDebugChar(BYTE b)
641    }    }
642    else    else
643      PutChar(b);      PutChar(b);
644              }
645    
646    if (CharAttr.Attr != AttrDefault)    if (CharAttr.Attr != AttrDefault)
647    {    {
648      UpdateStr();      UpdateStr();
649      CharAttr.Attr = AttrDefault;      CharAttr.Attr = AttrDefault;
650    }    }
651            }
652  }  }
653    
654  void PrnParseControl(BYTE b) // printer mode  void PrnParseControl(BYTE b) // printer mode
# Line 3480  int VTParse() Line 3495  int VTParse()
3495    
3496    while ((c>0) && (ChangeEmu==0))    while ((c>0) && (ChangeEmu==0))
3497    {    {
3498      if (DebugFlag)      if (DebugFlag!=DEBUG_FLAG_NONE)
3499        PutDebugChar(b);        PutDebugChar(b);
3500      else {      else {
3501        switch (ParseMode) {        switch (ParseMode) {

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

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