[Ttssh2-commit] [3802] ClearOnResize が off の時、桁数モード変更 (DECCOLM) で画面がクリアされなかったのを修正。

svnno****@sourc***** svnno****@sourc*****
2010年 2月 25日 (木) 21:01:34 JST


Revision: 3802
          http://sourceforge.jp/projects/ttssh2/svn/view?view=rev&revision=3802
Author:   doda
Date:     2010-02-25 21:01:34 +0900 (Thu, 25 Feb 2010)

Log Message:
-----------
ClearOnResize が off の時、桁数モード変更(DECCOLM)で画面がクリアされなかったのを修正。

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


-------------- next part --------------
Modified: trunk/teraterm/teraterm/vtterm.c
===================================================================
--- trunk/teraterm/teraterm/vtterm.c	2010-02-25 10:53:02 UTC (rev 3801)
+++ trunk/teraterm/teraterm/vtterm.c	2010-02-25 12:01:34 UTC (rev 3802)
@@ -2063,6 +2063,14 @@
       UpdateWindow(HVTWin);
     }
 
+    void CSQChangeColumnMode(int width)		// DECCOLM
+    {
+      ChangeTerminalSize(width, NumOfLines-StatusLine);
+      MoveCursor(0, 0);
+      BuffClearScreen();
+      UpdateWindow(HVTWin);
+    }
+
     void CSQ_h_Mode() // DECSET
     {
       int i;
@@ -2070,9 +2078,7 @@
       for (i = 1 ; i<=NParam ; i++)
 	switch (Param[i]) {
 	  case 1: AppliCursorMode = TRUE; break;		// DECCKM
-	  case 3:		// DECCOLM
-	    ChangeTerminalSize(132,NumOfLines-StatusLine);
-	    break;
+	  case 3: CSQChangeColumnMode(132); break;		// DECCOLM
 	  case 5: /* Reverse Video (DECSCNM) */
 	    if (!(ts.ColorFlag & CF_REVERSEVIDEO))
 	      CSQExchangeColor(); /* Exchange text/back color */
@@ -2203,9 +2209,7 @@
       for (i = 1 ; i <= NParam ; i++)
 	switch (Param[i]) {
 	  case 1: AppliCursorMode = FALSE; break;		// DECCKM
-	  case 3: // DECCOLM
-	    ChangeTerminalSize(80,NumOfLines-StatusLine);
-	    break;
+	  case 3: CSQChangeColumnMode(80); break;		// DECCOLM
 	  case 5: /* Normal Video (DECSCNM) */
 	    if (ts.ColorFlag & CF_REVERSEVIDEO)
 	      CSQExchangeColor(); /* Exchange text/back color */



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