[Ttssh2-commit] [8383] xterm の ED/DECSED 3 (スクロールバッファクリア) に対応

Back to archive index
scmno****@osdn***** scmno****@osdn*****
2019年 11月 21日 (木) 20:29:49 JST


Revision: 8383
          https://osdn.net/projects/ttssh2/scm/svn/commits/8383
Author:   doda
Date:     2019-11-21 20:29:48 +0900 (Thu, 21 Nov 2019)
Log Message:
-----------
xterm の ED/DECSED 3 (スクロールバッファクリア) に対応

Ticket: #39568

問題:
  clear コマンドでスクロールバッファの内容が消えない。

対応:
  xterm の ED/DESED 3 (スクロールバッファクリア) に対応した。
  有効/無効を設定出来るようにした。clear コマンドでスクロールバッファが
  クリアされない事を望む人が多いようなので、デフォルトでは off とする。

参考:
  https://twitter.com/ttdoda/status/1166913096167776257

Ticket Links:
------------
    https://osdn.net/projects/ttssh2/tracker/detail/39568

Modified Paths:
--------------
    trunk/doc/en/html/about/history.html
    trunk/doc/en/html/menu/setup-additional.html
    trunk/doc/ja/html/about/history.html
    trunk/doc/ja/html/menu/setup-additional.html
    trunk/installer/release/TERATERM.INI
    trunk/installer/release/lang/English.lng
    trunk/installer/release/lang/French.lng
    trunk/installer/release/lang/German.lng
    trunk/installer/release/lang/Japanese.lng
    trunk/installer/release/lang/Korean.lng
    trunk/installer/release/lang/Russian.lng
    trunk/installer/release/lang/Simplified Chinese.lng
    trunk/installer/release/lang/Traditional Chinese.lng
    trunk/teraterm/common/tt_res.h
    trunk/teraterm/common/tttypes.h
    trunk/teraterm/teraterm/addsetting.cpp
    trunk/teraterm/teraterm/ttermpro.rc
    trunk/teraterm/teraterm/vtterm.c
    trunk/teraterm/ttpset/ttset.c

-------------- next part --------------
Modified: trunk/doc/en/html/about/history.html
===================================================================
--- trunk/doc/en/html/about/history.html	2019-11-21 11:29:42 UTC (rev 8382)
+++ trunk/doc/en/html/about/history.html	2019-11-21 11:29:48 UTC (rev 8383)
@@ -43,6 +43,10 @@
       <li>Eterm look-feel: Added the <a href="../menu/setup-additional.html#MixedThemeFile">Mixed ThemeFile to Background</a> configuration. Also, added the the <a href="../setup/teraterm-ini.html#BGIgnoreThemeFile">BGIgnoreThemeFile</a> entry in the teraterm.ini file. The default value is off.</li>
       <li>When the opacity values of the <a href="../menu/setup-additional.html">Additional settings dialog</a> is input over than 255, the value is automatically changed to 255 over the dialog.</li>
       <li>Added support for REP control sequence.</li>
+      <li>Added support for xterm ED 3 (clear scroll buffer) control sequence.
+        <ul>
+          <li>Added the <a href="../menu/setup-additional.html#ed3">"Accept clearing scroll buffer from remote"</a> setting on the <a href="../menu/setup-additional.html#TabControlSequence">Control Sequence tab</a> of the <a href="../menu/setup-additional.html">Additional settings dialog</a>.</li>
+        </ul></li>
 
       <li>Serial port connection
         <ul>

Modified: trunk/doc/en/html/menu/setup-additional.html
===================================================================
--- trunk/doc/en/html/menu/setup-additional.html	2019-11-21 11:29:42 UTC (rev 8382)
+++ trunk/doc/en/html/menu/setup-additional.html	2019-11-21 11:29:48 UTC (rev 8383)
@@ -191,6 +191,11 @@
 	Notifies the access of clipboard from remote host.
       </dd>
 
+      <dt id="ed3">Accept clearing scroll buffer from remote</dt>
+      <dd>
+        Enables the control sequence for clearing the scroll buffer. When enabled, the clear command clears the scroll buffer.
+      </dd>
+
     </dl>
 
 

Modified: trunk/doc/ja/html/about/history.html
===================================================================
--- trunk/doc/ja/html/about/history.html	2019-11-21 11:29:42 UTC (rev 8382)
+++ trunk/doc/ja/html/about/history.html	2019-11-21 11:29:48 UTC (rev 8383)
@@ -43,6 +43,10 @@
       <li>Eterm look-feel: <a href="../menu/setup-additional.html#MixedThemeFile">\x95ǎ\x86\x82Ɖ摜\x82\xF0\x8D\xAC\x8D\x87\x82\xB7\x82\xE9</a>\x82\xF0\x90ݒ\xE8\x82ł\xAB\x82\xE9\x82悤\x82ɂ\xB5\x82\xBD\x81Bteraterm.ini \x82\xC9 <a href="../setup/teraterm-ini.html#BGIgnoreThemeFile">BGIgnoreThemeFile</a> \x83G\x83\x93\x83g\x83\x8A\x82\xF0\x92lj\xC1\x82\xB5\x82\xBD\x81B\x83f\x83t\x83H\x83\x8B\x83g\x82\xCDoff\x81B</li>
       <li><a href="../menu/setup-additional.html">Additional settings\x83_\x83C\x83A\x83\x8D\x83O</a>\x82\xCCVisual\x83^\x83u\x82ŕs\x93\xA7\x96\xBE\x93x\x82̒l\x82\xC9256\x88ȏ\xE3\x82\xF0\x93\xFC\x97͂\xB5\x82\xBD\x82Ƃ\xAB\x81A\x83_\x83C\x83A\x83\x8D\x83O\x8F\xE3\x82\xC5255\x82ɕύX\x82\xB7\x82\xE9\x82悤\x82ɂ\xB5\x82\xBD\x81B</li>
       <li>REP \x90\xA7\x8C\xE4\x83V\x81[\x83P\x83\x93\x83X\x82ɑΉ\x9E\x82\xB5\x82\xBD\x81B</li>
+      <li>xterm \x82\xCC ED 3 (\x83X\x83N\x83\x8D\x81[\x83\x8B\x83o\x83b\x83t\x83@\x8F\xC1\x8B\x8E) \x90\xA7\x8C\xE4\x83V\x81[\x83P\x83\x93\x83X\x82ɑΉ\x9E\x82\xB5\x82\xBD\x81B
+        <ul>
+	  <li><a href="../menu/setup-additional.html">Additional settings\x83_\x83C\x83A\x83\x8D\x83O</a>\x82\xCC<a href="../menu/setup-additional.html#TabControlSequence">Control Sequence\x83^\x83u</a>\x82\xC9<a href="../menu/setup-additional.html#ed3">\x81u\x83\x8A\x83\x82\x81[\x83g\x82\xA9\x82\xE7\x82̃X\x83N\x83\x8D\x81[\x83\x8B\x83o\x83b\x83t\x83@\x8F\xC1\x8B\x8E\x82\xF0\x8E󂯓\xFC\x82\xEA\x82\xE9\x81v</a>\x82\xF0\x92lj\xC1\x82\xB5\x82\xBD\x81B\x83f\x83t\x83H\x83\x8B\x83g\x82\xCDoff\x81B</li>
+        </ul></li>
 
       <li>\x83V\x83\x8A\x83A\x83\x8B\x83|\x81[\x83g\x90ڑ\xB1
         <ul>

Modified: trunk/doc/ja/html/menu/setup-additional.html
===================================================================
--- trunk/doc/ja/html/menu/setup-additional.html	2019-11-21 11:29:42 UTC (rev 8382)
+++ trunk/doc/ja/html/menu/setup-additional.html	2019-11-21 11:29:48 UTC (rev 8383)
@@ -189,6 +189,11 @@
 	\x83z\x83X\x83g\x82\xA9\x82\xE7\x82̃N\x83\x8A\x83b\x83v\x83{\x81[\x83h\x82ւ̃A\x83N\x83Z\x83X\x82\xF0\x92ʒm\x82\xB7\x82邩\x90ݒ肵\x82܂\xB7\x81B
       </dd>
 
+      <dt id="ed3">Accept clearing scroll buffer from remote</dt>
+      <dd>
+	\x83z\x83X\x83g\x82\xA9\x82\xE7\x82̃X\x83N\x83\x8D\x81[\x83\x8B\x83o\x83b\x83t\x83@\x83N\x83\x8A\x83A\x97v\x8B\x81\x82\xF0\x8E󂯓\xFC\x82\xEA\x82邩\x82\xF0\x90ݒ肵\x82܂\xB7\x81B\x97L\x8C\xF8\x82ɂ\xB7\x82\xE9\x82\xC6 clear \x83R\x83}\x83\x93\x83h\x82ŃX\x83N\x83\x8D\x81[\x83\x8B\x83o\x83b\x83t\x83@\x82\xAA\x8F\xC1\x8B\x8E\x82\xB3\x82\xEA\x82\xE9\x82悤\x82ɂȂ\xE8\x82܂\xB7\x81B
+      </dd>
+
     </dl>
 
 

Modified: trunk/installer/release/TERATERM.INI
===================================================================
--- trunk/installer/release/TERATERM.INI	2019-11-21 11:29:42 UTC (rev 8382)
+++ trunk/installer/release/TERATERM.INI	2019-11-21 11:29:48 UTC (rev 8383)
@@ -465,6 +465,9 @@
 ; Clear screen when window is resized
 ClearOnResize=on
 
+; Accept clearing scroll buffer from remote (xterm ED3)
+ClearScrollBufferFromRemote=off
+
 ; Clear screen after the connection is closed
 ClearScreenOnCloseConnection=off
 

Modified: trunk/installer/release/lang/English.lng
===================================================================
--- trunk/installer/release/lang/English.lng	2019-11-21 11:29:42 UTC (rev 8382)
+++ trunk/installer/release/lang/English.lng	2019-11-21 11:29:48 UTC (rev 8383)
@@ -212,6 +212,7 @@
 DLG_TAB_SEQUENCE_CLIPBOARD_ACCESS_READ=read only
 DLG_TAB_SEQUENCE_CLIPBOARD_ACCESS_WRITE=write only
 DLG_TAB_SEQUENCE_CLIPBOARD_NOTIFY=&Notify clipboard access from remote
+DLG_TAB_SEQUENCE_ACCEPT_CLEAR_SBUFF=Accept clearing &scroll buffer from remote
 
 DLG_TAB_COPYPASTE_CONTINUE=Enable continued &line copy
 DLG_TAB_COPYPASTE_MOUSEPASTE=&Disable mouse R button paste

Modified: trunk/installer/release/lang/French.lng
===================================================================
--- trunk/installer/release/lang/French.lng	2019-11-21 11:29:42 UTC (rev 8382)
+++ trunk/installer/release/lang/French.lng	2019-11-21 11:29:48 UTC (rev 8383)
@@ -213,6 +213,7 @@
 DLG_TAB_SEQUENCE_CLIPBOARD_ACCESS_READ=read only
 DLG_TAB_SEQUENCE_CLIPBOARD_ACCESS_WRITE=write only
 DLG_TAB_SEQUENCE_CLIPBOARD_NOTIFY=&Notify clipboard access from remote
+DLG_TAB_SEQUENCE_ACCEPT_CLEAR_SBUFF=Accept clearing &scroll buffer from remote
 
 DLG_TAB_COPYPASTE_CONTINUE=Autoriser copie continue de ligne
 DLG_TAB_COPYPASTE_MOUSEPASTE=Interdire coller avec bouton D de la souris

Modified: trunk/installer/release/lang/German.lng
===================================================================
--- trunk/installer/release/lang/German.lng	2019-11-21 11:29:42 UTC (rev 8382)
+++ trunk/installer/release/lang/German.lng	2019-11-21 11:29:48 UTC (rev 8383)
@@ -213,6 +213,7 @@
 DLG_TAB_SEQUENCE_CLIPBOARD_ACCESS_READ=read only
 DLG_TAB_SEQUENCE_CLIPBOARD_ACCESS_WRITE=write only
 DLG_TAB_SEQUENCE_CLIPBOARD_NOTIFY=&Notify clipboard access from remote
+DLG_TAB_SEQUENCE_ACCEPT_CLEAR_SBUFF=Accept clearing &scroll buffer from remote
 
 DLG_TAB_COPYPASTE_CONTINUE=Mehrere Zeilen kopieren
 DLG_TAB_COPYPASTE_MOUSEPASTE=&Einf\xFCgen mit rechter Maustaste aus

Modified: trunk/installer/release/lang/Japanese.lng
===================================================================
--- trunk/installer/release/lang/Japanese.lng	2019-11-21 11:29:42 UTC (rev 8382)
+++ trunk/installer/release/lang/Japanese.lng	2019-11-21 11:29:48 UTC (rev 8383)
@@ -212,6 +212,7 @@
 DLG_TAB_SEQUENCE_CLIPBOARD_ACCESS_READ=\x93Ǎ\x9E\x82̂\xDD
 DLG_TAB_SEQUENCE_CLIPBOARD_ACCESS_WRITE=\x8F\x91\x8D\x9E\x82̂\xDD
 DLG_TAB_SEQUENCE_CLIPBOARD_NOTIFY=\x83\x8A\x83\x82\x81[\x83g\x82\xA9\x82\xE7\x82̃N\x83\x8A\x83b\x83v\x83{\x81[\x83h\x83A\x83N\x83Z\x83X\x82\xF0\x92ʒm\x82\xB7\x82\xE9(&N)
+DLG_TAB_SEQUENCE_ACCEPT_CLEAR_SBUFF=\x83\x8A\x83\x82\x81[\x83g\x82\xA9\x82\xE7\x82̃X\x83N\x83\x8D\x81[\x83\x8B\x83o\x83b\x83t\x83@\x82̏\xC1\x8B\x8E\x82\xF0\x8E󂯓\xFC\x82\xEA\x82\xE9(&S)
 
 DLG_TAB_COPYPASTE_CONTINUE=\x8Cp\x91\xB1\x8Ds\x83R\x83s\x81[\x82\xF0\x97L\x8C\xF8\x82ɂ\xB7\x82\xE9(&L)
 DLG_TAB_COPYPASTE_MOUSEPASTE=\x89E\x83N\x83\x8A\x83b\x83N\x82ł̓\\x82\xE8\x95t\x82\xAF\x82𖳌\xF8\x82ɂ\xB7\x82\xE9(&D)

Modified: trunk/installer/release/lang/Korean.lng
===================================================================
--- trunk/installer/release/lang/Korean.lng	2019-11-21 11:29:42 UTC (rev 8382)
+++ trunk/installer/release/lang/Korean.lng	2019-11-21 11:29:48 UTC (rev 8383)
@@ -213,6 +213,7 @@
 DLG_TAB_SEQUENCE_CLIPBOARD_ACCESS_READ=\xC0б\xE2\xC0\xFC\xBF\xEB
 DLG_TAB_SEQUENCE_CLIPBOARD_ACCESS_WRITE=\xBE\xB2\xB1\xE2 \xC0\xFC\xBF\xEB
 DLG_TAB_SEQUENCE_CLIPBOARD_NOTIFY=&Notify clipboard access from remote
+DLG_TAB_SEQUENCE_ACCEPT_CLEAR_SBUFF=Accept clearing &scroll buffer from remote
 
 DLG_TAB_COPYPASTE_CONTINUE=\xBF\xAC\xBCӵ\xC8 \xC1\xD9 \xBA\xB9\xBB\xE7 \xC7Ҽ\xBAȭ(&L)
 DLG_TAB_COPYPASTE_MOUSEPASTE=\xB8\xB6\xBF콺 \xBF\xC0\xB8\xA5\xC2\xCA \xB9\xF6ư \xBAٿ\xA9\xB3ֱ\xE2 \xBA\xF1Ȱ\xBC\xBAȭ(&D)

Modified: trunk/installer/release/lang/Russian.lng
===================================================================
--- trunk/installer/release/lang/Russian.lng	2019-11-21 11:29:42 UTC (rev 8382)
+++ trunk/installer/release/lang/Russian.lng	2019-11-21 11:29:48 UTC (rev 8383)
@@ -213,6 +213,7 @@
 DLG_TAB_SEQUENCE_CLIPBOARD_ACCESS_READ=\xF7\xF2\xE5\xED\xE8\xE5
 DLG_TAB_SEQUENCE_CLIPBOARD_ACCESS_WRITE=\xE7\xE0\xEF\xE8\xF1\xFC
 DLG_TAB_SEQUENCE_CLIPBOARD_NOTIFY=&\xD3\xE2\xE5\xE4\xEE\xEC\xEB\xFF\xF2\xFC \xEE\xE1 \xF3\xE4\xE0\xEB\xE5\xED\xED\xEE\xEC \xE4\xEE\xF1\xF2\xF3\xEF\xE5 \xEA \xE1\xF3\xF4\xE5\xF0\xF3
+DLG_TAB_SEQUENCE_ACCEPT_CLEAR_SBUFF=Accept clearing &scroll buffer from remote
 
 DLG_TAB_COPYPASTE_CONTINUE=&\xC2\xEE\xE7\xEC\xEE\xE6\xED\xEE\xF1\xF2\xFC \xEF\xF0\xEE\xE4\xEE\xEB\xE6\xE5\xED\xE8\xFF \xEA\xEE\xEF\xE8\xF0\xEE\xE2\xE0\xED\xE8\xFF \xF1\xF2\xF0\xEE\xEA\xE8
 DLG_TAB_COPYPASTE_MOUSEPASTE=&\xCE\xF2\xEA\xEB\xFE\xF7\xE8\xF2\xFC \xE2\xF1\xF2\xE0\xE2\xEA\xF3 \xEF\xF0\xE0\xE2\xEE\xE9 \xEA\xED\xEE\xEF\xEA\xEE\xE9 \xEC\xFB\xF8\xE8

Modified: trunk/installer/release/lang/Simplified Chinese.lng
===================================================================
--- trunk/installer/release/lang/Simplified Chinese.lng	2019-11-21 11:29:42 UTC (rev 8382)
+++ trunk/installer/release/lang/Simplified Chinese.lng	2019-11-21 11:29:48 UTC (rev 8383)
@@ -213,6 +213,7 @@
 DLG_TAB_SEQUENCE_CLIPBOARD_ACCESS_READ=ֻ\xB6\xC1
 DLG_TAB_SEQUENCE_CLIPBOARD_ACCESS_WRITE=ֻд
 DLG_TAB_SEQUENCE_CLIPBOARD_NOTIFY=Զ\xB3\xCC֪ͨ\xBC\xF4\xCC\xF9\xB0\xE5\xB7\xC3\xCE\xCA(&N)
+DLG_TAB_SEQUENCE_ACCEPT_CLEAR_SBUFF=Accept clearing &scroll buffer from remote
 
 DLG_TAB_COPYPASTE_CONTINUE=\xB6\xE0\xD0и\xB4\xD6\xC6(&L)
 DLG_TAB_COPYPASTE_MOUSEPASTE=\xBD\xFB\xD3\xC3\xD3Ҽ\xFC\xB5\xA5\xBB\xF7ճ\xCC\xF9(&D)

Modified: trunk/installer/release/lang/Traditional Chinese.lng
===================================================================
--- trunk/installer/release/lang/Traditional Chinese.lng	2019-11-21 11:29:42 UTC (rev 8382)
+++ trunk/installer/release/lang/Traditional Chinese.lng	2019-11-21 11:29:48 UTC (rev 8383)
@@ -213,6 +213,7 @@
 DLG_TAB_SEQUENCE_CLIPBOARD_ACCESS_READ=\xA5uŪ
 DLG_TAB_SEQUENCE_CLIPBOARD_ACCESS_WRITE=\xA5u\xBCg
 DLG_TAB_SEQUENCE_CLIPBOARD_NOTIFY=&Notify clipboard access from remote
+DLG_TAB_SEQUENCE_ACCEPT_CLEAR_SBUFF=Accept clearing &scroll buffer from remote
 
 DLG_TAB_COPYPASTE_CONTINUE=\xA6h\xA6\xE6\xBDƻs(&L)
 DLG_TAB_COPYPASTE_MOUSEPASTE=\xB8T\xA5Υk\xC1\xE4\xB3\xE6\xC0\xBB\xB6K\xA4W(&D)

Modified: trunk/teraterm/common/tt_res.h
===================================================================
--- trunk/teraterm/common/tt_res.h	2019-11-21 11:29:42 UTC (rev 8382)
+++ trunk/teraterm/common/tt_res.h	2019-11-21 11:29:48 UTC (rev 8383)
@@ -240,6 +240,7 @@
 #define IDC_DAD_NOTE                    2588
 #define IDC_SELECT_ON_ACTIVATE          2589
 #define IDC_MIXED_THEME_FILE            2590
+#define IDC_ACCEPT_CLEAR_SBUFF          2591
 #define ID_ACC_SENDBREAK                50001
 #define ID_ACC_COPY                     50002
 #define ID_ACC_NEWCONNECTION            50003

Modified: trunk/teraterm/common/tttypes.h
===================================================================
--- trunk/teraterm/common/tttypes.h	2019-11-21 11:29:42 UTC (rev 8382)
+++ trunk/teraterm/common/tttypes.h	2019-11-21 11:29:48 UTC (rev 8383)
@@ -279,6 +279,7 @@
 #define TF_LOCKTUID           1024
 #define TF_INVALIDDECRPSS     2048
 #define TF_PRINTERCTRL        4096
+#define TF_REMOTECLEARSBUFF   8192
 
 // ANSI/Attribute color flags (used in ts.ColorFlag)
 #define CF_PCBOLD16     1

Modified: trunk/teraterm/teraterm/addsetting.cpp
===================================================================
--- trunk/teraterm/teraterm/addsetting.cpp	2019-11-21 11:29:42 UTC (rev 8382)
+++ trunk/teraterm/teraterm/addsetting.cpp	2019-11-21 11:29:48 UTC (rev 8383)
@@ -251,6 +251,7 @@
 		{ IDC_CLIPBOARD_ACCESS_LABEL, "DLG_TAB_SEQUENCE_CLIPBOARD_ACCESS" },
 
 		{ IDC_CLIPBOARD_NOTIFY, "DLG_TAB_SEQUENCE_CLIPBOARD_NOTIFY" },
+		{ IDC_ACCEPT_CLEAR_SBUFF, "DLG_TAB_SEQUENCE_ACCEPT_CLEAR_SBUFF" },
 	};
 	SetDlgTexts(m_hWnd, TextInfos, _countof(TextInfos), ts.UILanguageFile);
 
@@ -316,6 +317,9 @@
 	SetCheck(IDC_CLIPBOARD_NOTIFY, ts.NotifyClipboardAccess);
 	EnableDlgItem(IDC_CLIPBOARD_NOTIFY, HasBalloonTipSupport() ? TRUE : FALSE);
 
+	// (10)IDC_ACCEPT_CLEAR_SBUFF
+	SetCheck(IDC_ACCEPT_CLEAR_SBUFF, (ts.TermFlag & TF_REMOTECLEARSBUFF) != 0);
+
 	// \x83_\x83C\x83A\x83\x8D\x83O\x82Ƀt\x83H\x81[\x83J\x83X\x82𓖂Ă\xE9 (2004.12.7 yutaka)
 	::SetFocus(::GetDlgItem(GetSafeHwnd(), IDC_ACCEPT_MOUSE_EVENT_TRACKING));
 }
@@ -398,6 +402,11 @@
 
 	// (9)IDC_CLIPBOARD_ACCESS
 	ts.NotifyClipboardAccess = GetCheck(IDC_CLIPBOARD_NOTIFY);
+
+	// (10)IDC_ACCEPT_CLEAR_SBUFF
+	if (((ts.TermFlag & TF_REMOTECLEARSBUFF) != 0) != GetCheck(IDC_ACCEPT_CLEAR_SBUFF)) {
+		ts.TermFlag ^= TF_REMOTECLEARSBUFF;
+	}
 }
 
 void CSequencePropPageDlg::OnHelp()

Modified: trunk/teraterm/teraterm/ttermpro.rc
===================================================================
--- trunk/teraterm/teraterm/ttermpro.rc	2019-11-21 11:29:42 UTC (rev 8382)
+++ trunk/teraterm/teraterm/ttermpro.rc	2019-11-21 11:29:48 UTC (rev 8383)
@@ -115,6 +115,8 @@
     COMBOBOX        IDC_CLIPBOARD_ACCESS,162,114,45,52,CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
     CONTROL         "&Notify clipboard access from remote",IDC_CLIPBOARD_NOTIFY,
                     "Button",BS_AUTOCHECKBOX | WS_TABSTOP,10,130,220,10
+    CONTROL         "Accept clearing &scroll buffer from remote",IDC_ACCEPT_CLEAR_SBUFF,
+                    "Button",BS_AUTOCHECKBOX | WS_TABSTOP,10,145,220,10
 END
 
 IDD_TABSHEET_COPYPASTE DIALOGEX 0, 0, 258, 194

Modified: trunk/teraterm/teraterm/vtterm.c
===================================================================
--- trunk/teraterm/teraterm/vtterm.c	2019-11-21 11:29:42 UTC (rev 8382)
+++ trunk/teraterm/teraterm/vtterm.c	2019-11-21 11:29:48 UTC (rev 8383)
@@ -1725,6 +1725,12 @@
 			}
 		}
 		break;
+
+	  case 3:
+		if (ts.TermFlag & TF_REMOTECLEARSBUFF) {
+			ClearBuffer();
+		}
+		break;
 	}
 }
 
@@ -1746,6 +1752,12 @@
 		// Erase entire screen
 		BuffSelectedEraseScreen();
 		break;
+
+	  case 3:
+		if (ts.TermFlag & TF_REMOTECLEARSBUFF) {
+			ClearBuffer();
+		}
+		break;
 	}
 }
 

Modified: trunk/teraterm/ttpset/ttset.c
===================================================================
--- trunk/teraterm/ttpset/ttset.c	2019-11-21 11:29:42 UTC (rev 8382)
+++ trunk/teraterm/ttpset/ttset.c	2019-11-21 11:29:48 UTC (rev 8383)
@@ -2210,6 +2210,10 @@
 	else
 		ts->TerminalOutputSpeed = ts->TerminalInputSpeed;
 
+	// Clear scroll buffer from remote -- special option
+	if (GetOnOff(Section, "ClearScrollBufferFromRemote", FName, TRUE))
+		ts->TermFlag |= TF_REMOTECLEARSBUFF;
+
 	// Fallback to CP932 (Experimental)
 	ts->FallbackToCP932 = GetOnOff(Section, "FallbackToCP932", FName, FALSE);
 
@@ -3530,6 +3534,10 @@
 			ts->TerminalInputSpeed, ts->TerminalOutputSpeed);
 	}
 
+	// Clear scroll buffer from remote -- special option
+	WriteOnOff(Section, "ClearScrollBufferFromRemote", FName,
+		(WORD) (ts->PasteFlag & TF_REMOTECLEARSBUFF));
+
 	// CygTerm Configuration File
 	WriteCygtermConfFile(ts);
 


Ttssh2-commit メーリングリストの案内
Back to archive index