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 4419 by doda, Fri Apr 8 02:41:15 2011 UTC revision 4420 by doda, Fri Apr 8 03:08:19 2011 UTC
# Line 2409  void CSSetAttr()               // SGR Line 2409  void CSSetAttr()               // SGR
2409                AcceptWheelToCursor = TRUE;                AcceptWheelToCursor = TRUE;
2410              }              }
2411              break;              break;
2412              case 14001: // NetTerm mouse mode
2413                if (ts.MouseEventTracking)
2414                  MouseReportMode = IdMouseTrackNetTerm;
2415                break;
2416          }          }
2417      }      }
2418    
# Line 2535  void CSSetAttr()               // SGR Line 2539  void CSSetAttr()               // SGR
2539            case 7786: // Wheel to Cursor translation            case 7786: // Wheel to Cursor translation
2540              AcceptWheelToCursor = FALSE;              AcceptWheelToCursor = FALSE;
2541              break;              break;
2542              case 14001: // NetTerm mouse mode
2543                MouseReportMode = IdMouseTrackNone;
2544                break;
2545          }          }
2546      }      }
2547    
# Line 4348  BOOL MouseReport(int Event, int Button, Line 4355  BOOL MouseReport(int Event, int Button,
4355    if (x < 1) x = 1;    if (x < 1) x = 1;
4356    if (y < 1) y = 1;    if (y < 1) y = 1;
4357    
4358    if (MouseReportMode != IdMouseTrackDECELR) {    if (MouseReportMode != IdMouseTrackDECELR && MouseReportMode != IdMouseTrackNetTerm) {
4359      if (x > 0xff - 32) x = 0xff - 32;      if (x > 0xff - 32) x = 0xff - 32;
4360      if (y > 0xff - 32) y = 0xff - 32;      if (y > 0xff - 32) y = 0xff - 32;
4361    }    }
# Line 4382  BOOL MouseReport(int Event, int Button, Line 4389  BOOL MouseReport(int Event, int Button,
4389            LastButton = Button;            LastButton = Button;
4390            break;            break;
4391    
4392            case IdMouseTrackNetTerm:
4393              len = _snprintf_s_l(Report, sizeof Report, _TRUNCATE, "\033}%d,%d\r", CLocale, y, x);
4394              CommBinaryOut(&cv, Report, len);
4395              return TRUE;
4396    
4397          case IdMouseTrackVT200Hl: /* not supported yet */          case IdMouseTrackVT200Hl: /* not supported yet */
4398          default:          default:
4399            return FALSE;            return FALSE;
# Line 4400  BOOL MouseReport(int Event, int Button, Line 4412  BOOL MouseReport(int Event, int Button,
4412            break;            break;
4413    
4414          case IdMouseTrackX10: /* nothing to do */          case IdMouseTrackX10: /* nothing to do */
4415            case IdMouseTrackNetTerm: /* nothing to do */
4416          case IdMouseTrackVT200Hl: /* not supported yet */          case IdMouseTrackVT200Hl: /* not supported yet */
4417          default:          default:
4418            return FALSE;            return FALSE;
# Line 4425  BOOL MouseReport(int Event, int Button, Line 4438  BOOL MouseReport(int Event, int Button,
4438          case IdMouseTrackVT200Hl: /* not supported yet */          case IdMouseTrackVT200Hl: /* not supported yet */
4439          case IdMouseTrackX10: /* nothing to do */          case IdMouseTrackX10: /* nothing to do */
4440          case IdMouseTrackVT200: /* nothing to do */          case IdMouseTrackVT200: /* nothing to do */
4441            case IdMouseTrackNetTerm: /* nothing to do */
4442          default:          default:
4443            return FALSE;            return FALSE;
4444        }        }
# Line 4440  BOOL MouseReport(int Event, int Button, Line 4454  BOOL MouseReport(int Event, int Button,
4454    
4455          case IdMouseTrackX10: /* nothing to do */          case IdMouseTrackX10: /* nothing to do */
4456          case IdMouseTrackVT200Hl: /* not supported yet */          case IdMouseTrackVT200Hl: /* not supported yet */
4457            case IdMouseTrackNetTerm: /* nothing to do */
4458            return FALSE;            return FALSE;
4459        }        }
4460        break;        break;

Legend:
Removed from v.4419  
changed lines
  Added in v.4420

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