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 4291 by doda, Tue Feb 1 05:27:32 2011 UTC revision 4293 by doda, Mon Feb 7 00:42:18 2011 UTC
# Line 70  BOOL BracketedPaste; Line 70  BOOL BracketedPaste;
70    
71  static int VTlevel;  static int VTlevel;
72    
73    BOOL AcceptWheelToCursor;
74    
75  // save/restore cursor  // save/restore cursor
76  typedef struct {  typedef struct {
77    int CursorX, CursorY;    int CursorX, CursorY;
# Line 214  void ResetTerminal() /*reset variables b Line 216  void ResetTerminal() /*reset variables b
216    AppliKeyMode = FALSE;    AppliKeyMode = FALSE;
217    AppliCursorMode = FALSE;    AppliCursorMode = FALSE;
218    AppliEscapeMode = FALSE;    AppliEscapeMode = FALSE;
219      AcceptWheelToCursor = ts.TranslateWheelToCursor;
220    RelativeOrgMode = FALSE;    RelativeOrgMode = FALSE;
221    ts.ColorFlag &= ~CF_REVERSEVIDEO;    ts.ColorFlag &= ~CF_REVERSEVIDEO;
222    AutoRepeatMode = TRUE;    AutoRepeatMode = TRUE;
# Line 2395  void CSSetAttr()               // SGR Line 2398  void CSSetAttr()               // SGR
2398            case 7727: // mintty Application Escape Mode            case 7727: // mintty Application Escape Mode
2399              AppliEscapeMode = TRUE;              AppliEscapeMode = TRUE;
2400              break;              break;
2401              case 7786: // Wheel to Cursor translation
2402                if (ts.TranslateWheelToCursor) {
2403                  AcceptWheelToCursor = TRUE;
2404                }
2405                break;
2406          }          }
2407      }      }
2408    
# Line 2514  void CSSetAttr()               // SGR Line 2522  void CSSetAttr()               // SGR
2522            case 7727: // mintty Application Escape Mode            case 7727: // mintty Application Escape Mode
2523              AppliEscapeMode = FALSE;              AppliEscapeMode = FALSE;
2524              break;              break;
2525              case 7786: // Wheel to Cursor translation
2526                AcceptWheelToCursor = FALSE;
2527                break;
2528          }          }
2529      }      }
2530    
# Line 2551  void CSSetAttr()               // SGR Line 2562  void CSSetAttr()               // SGR
2562      AppliKeyMode = FALSE;      AppliKeyMode = FALSE;
2563      AppliCursorMode = FALSE;      AppliCursorMode = FALSE;
2564      AppliEscapeMode = FALSE;      AppliEscapeMode = FALSE;
2565        AcceptWheelToCursor = ts.TranslateWheelToCursor;
2566      if ((StatusLine>0) &&      if ((StatusLine>0) &&
2567          (CursorY == NumOfLines-1))          (CursorY == NumOfLines-1))
2568        MoveToMainScreen();        MoveToMainScreen();
# Line 4460  BOOL BracketedPasteMode() { Line 4472  BOOL BracketedPasteMode() {
4472          return BracketedPaste;          return BracketedPaste;
4473  }  }
4474    
4475    BOOL WheelToCursorMode() {
4476            return AcceptWheelToCursor && AppliCursorMode && !ts.DisableAppCursor && !(ControlKey() && ts.DisableWheelToCursorByCtrl);
4477    }
4478    
4479  void ChangeTerminalID() {  void ChangeTerminalID() {
4480    switch (ts.TerminalID) {    switch (ts.TerminalID) {
4481    case IdVT220J:    case IdVT220J:

Legend:
Removed from v.4291  
changed lines
  Added in v.4293

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