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 2559 by yutakapon, Wed Jul 9 16:14:13 2008 UTC revision 2561 by doda, Mon Jul 14 08:15:10 2008 UTC
# Line 39  Line 39 
39  #define NParamMax 16  #define NParamMax 16
40  #define IntCharMax 5  #define IntCharMax 5
41    
42  void CSQExchangeColor();  void VisualBell();
43    
44  /* character attribute */  /* character attribute */
45  static TCharAttr CharAttr;  static TCharAttr CharAttr;
# Line 692  void ParseControl(BYTE b) Line 692  void ParseControl(BYTE b)
692          MessageBeep(0);          MessageBeep(0);
693          break;          break;
694        case IdBeepVisual:        case IdBeepVisual:
695          CSQExchangeColor();          VisualBell();
         Sleep(10);  
         CSQExchangeColor();  
696          break;          break;
697        }        }
698        break;        break;
# Line 1136  void ParseEscape(BYTE b) /* b is the fin Line 1134  void ParseEscape(BYTE b) /* b is the fin
1134            if (ts.PortType==IdSerial) // reset serial port            if (ts.PortType==IdSerial) // reset serial port
1135              CommResetSerial(&ts, &cv, TRUE);              CommResetSerial(&ts, &cv, TRUE);
1136            break;            break;
1137            case 'g': /* Visual Bell (screen original?) */
1138              VisualBell();
1139              break;
1140          case 'n': Glr[0] = 2; break; /* LS2 */          case 'n': Glr[0] = 2; break; /* LS2 */
1141          case 'o': Glr[0] = 3; break; /* LS3 */          case 'o': Glr[0] = 3; break; /* LS3 */
1142          case '|': Glr[1] = 3; break; /* LS3R */          case '|': Glr[1] = 3; break; /* LS3R */
# Line 3284  void FocusReport(BOOL focus) { Line 3285  void FocusReport(BOOL focus) {
3285      }      }
3286    }    }
3287  }  }
3288    
3289    void VisualBell() {
3290            CSQExchangeColor();
3291            Sleep(10);
3292            CSQExchangeColor();
3293    }

Legend:
Removed from v.2559  
changed lines
  Added in v.2561

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