[Ttssh2-commit] [3486] OSC文字列送信で、7bit応答設定 (S7C1T) 時にもSTを使っていたのを修正。

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2009年 6月 15日 (月) 11:55:48 JST


Revision: 3486
          http://svn.sourceforge.jp/view?root=ttssh2&view=rev&rev=3486
Author:   doda
Date:     2009-06-15 11:55:48 +0900 (Mon, 15 Jun 2009)

Log Message:
-----------
OSC文字列送信で、7bit応答設定(S7C1T)時にもSTを使っていたのを修正。

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


-------------- next part --------------
Modified: trunk/teraterm/teraterm/vtterm.c
===================================================================
--- trunk/teraterm/teraterm/vtterm.c	2009-06-15 02:39:48 UTC (rev 3485)
+++ trunk/teraterm/teraterm/vtterm.c	2009-06-15 02:55:48 UTC (rev 3486)
@@ -311,12 +311,17 @@
 	if (str == NULL || len <= 0)
 		return;
 
-	if (Send8BitMode)
+	if (Send8BitMode) {
 		CommBinaryOut(&cv,"\235", 1);
-	else
+		CommBinaryOut(&cv, str, len);
+		CommBinaryOut(&cv,"\234", 1);
+	}
+	else {
 		CommBinaryOut(&cv,"\033]", 2);
+		CommBinaryOut(&cv, str, len);
+		CommBinaryOut(&cv,"\033\\", 2);
+	}
 
-	CommBinaryOut(&cv, str, len);
 }
 
 void BackSpace()
@@ -2730,7 +2735,7 @@
 				if (strcmp(StrBuff, "?") == 0) {
 					color = DispGetANSIColor(ColorNumber);
 					len =_snprintf_s_l(StrBuff, sizeof(StrBuff), _TRUNCATE,
-						"4;%d;rgb:%02x/%02x/%02x\234", CLocale, ColorNumber,
+						"4;%d;rgb:%02x/%02x/%02x", CLocale, ColorNumber,
 						GetRValue(color), GetGValue(color), GetBValue(color));
 					ParseMode = ModeFirst;
 					XsParseMode = ModeXsFirst;
@@ -2757,7 +2762,7 @@
 				if (strcmp(StrBuff, "?") == 0) {
 					color = DispGetANSIColor(ColorNumber);
 					len =_snprintf_s_l(StrBuff, sizeof(StrBuff), _TRUNCATE,
-						"4;%d;rgb:%02x/%02x/%02x\234", CLocale, ColorNumber,
+						"4;%d;rgb:%02x/%02x/%02x", CLocale, ColorNumber,
 						GetRValue(color), GetGValue(color), GetBValue(color));
 					XsParseMode = ModeXsColorNum;
 					SendOSCstr(StrBuff, len);



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