[Ttssh2-commit] [4096] DECERA と DECSERA の処理をまとめた。

svnno****@sourc***** svnno****@sourc*****
2010年 9月 7日 (火) 20:20:55 JST


Revision: 4096
          http://sourceforge.jp/projects/ttssh2/svn/view?view=rev&revision=4096
Author:   doda
Date:     2010-09-07 20:20:55 +0900 (Tue, 07 Sep 2010)

Log Message:
-----------
DECERA と DECSERA の処理をまとめた。

Modified Paths:
--------------
    trunk/teraterm/teraterm/vtterm.c


-------------- next part --------------
Modified: trunk/teraterm/teraterm/vtterm.c
===================================================================
--- trunk/teraterm/teraterm/vtterm.c	2010-09-07 11:17:10 UTC (rev 4095)
+++ trunk/teraterm/teraterm/vtterm.c	2010-09-07 11:20:55 UTC (rev 4096)
@@ -2520,23 +2520,6 @@
   {
     switch (b) {
       case 'z': // DECERA
-	if (Param[1] < 1 || NParam < 1) Param[1]=1;
-	if (Param[2] < 1 || NParam < 2) Param[2]=1;
-	if (Param[3] < 1 || NParam < 3) Param[3]=1;
-	if (Param[4] < 1 || NParam < 4) Param[4]=1;
-	if (RelativeOrgMode) {
-	  Param[1] += CursorTop;
-	  if (Param[1] > CursorBottom) {
-	    Param[1] = CursorBottom + 1;
-	  }
-	  Param[3] += CursorTop;
-	  if (Param[3] > CursorBottom) {
-	    Param[3] = CursorBottom + 1;
-	  }
-	}
-	BuffEraseBox(Param[2]-1, Param[1]-1, Param[4]-1, Param[3]-1);
-	break;
-
       case '{': // DECSERA
 	if (Param[1] < 1 || NParam < 1) Param[1]=1;
 	if (Param[2] < 1 || NParam < 2) Param[2]=1;
@@ -2552,7 +2535,12 @@
 	    Param[3] = CursorBottom + 1;
 	  }
 	}
-	BuffSelectEraseBox(Param[2]-1, Param[1]-1, Param[4]-1, Param[3]-1);
+	if (b == 'z') {
+	  BuffEraseBox(Param[2]-1, Param[1]-1, Param[4]-1, Param[3]-1);
+	}
+	else {
+	  BuffSelectEraseBox(Param[2]-1, Param[1]-1, Param[4]-1, Param[3]-1);
+	}
 	break;
 
       case '}':



Ttssh2-commit メーリングリストの案内