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 5077 by doda, Tue Nov 27 09:45:19 2012 UTC revision 5089 by doda, Tue Dec 4 00:54:13 2012 UTC
# Line 2812  void CSSetAttr()               // SGR Line 2812  void CSSetAttr()               // SGR
2812    void CSDol(BYTE b)    void CSDol(BYTE b)
2813    {    {
2814      switch (b) {      switch (b) {
2815          case 'v': // DECCRA
2816            if (Param[1] < 1 || NParam < 1) Param[1] = 1;
2817            if (Param[2] < 1 || NParam < 2) Param[2] = 1;
2818            if (Param[3] < 1 || NParam < 3) Param[3] = NumOfLines-StatusLine;
2819            if (Param[4] < 1 || NParam < 4) Param[4] = NumOfColumns;
2820            if (Param[5] < 1 || NParam < 5) Param[5] = 1;
2821            if (Param[6] < 1 || NParam < 6) Param[6] = 1;
2822            if (Param[7] < 1 || NParam < 7) Param[7] = 1;
2823            if (Param[8] < 1 || NParam < 8) Param[8] = 1;
2824            if (Param[1] <= Param[3] && Param[2] <= Param[4]) {
2825              if (RelativeOrgMode) {
2826                Param[1] += CursorTop;
2827                if (Param[1] > CursorBottom) {
2828                  Param[1] = CursorBottom + 1;
2829                }
2830                Param[3] += CursorTop;
2831                if (Param[3] > CursorBottom) {
2832                  Param[3] = CursorBottom + 1;
2833                }
2834                Param[6] += CursorTop;
2835                if (Param[6] > CursorBottom) {
2836                  Param[6] = CursorBottom + 1;
2837                }
2838                if (Param[6] + Param[3] - Param[1] > CursorBottom) {
2839                  Param[3] = Param[1] + CursorBottom - Param[6] + 1;
2840                }
2841              }
2842              BuffCopyBox(Param[2], Param[1], Param[4], Param[3], Param[5], Param[7], Param[6], Param[8]);
2843            }
2844            break;
2845        case 'z': // DECERA        case 'z': // DECERA
2846        case '{': // DECSERA        case '{': // DECSERA
2847          if (Param[1] < 1 || NParam < 1) Param[1]=1;          if (Param[1] < 1 || NParam < 1) Param[1]=1;

Legend:
Removed from v.5077  
changed lines
  Added in v.5089

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