svnno****@sourc*****
svnno****@sourc*****
2011年 3月 25日 (金) 21:04:41 JST
Revision: 4393 http://sourceforge.jp/projects/ttssh2/svn/view?view=rev&revision=4393 Author: yutakapon Date: 2011-03-25 21:04:41 +0900 (Fri, 25 Mar 2011) Log Message: ----------- ããªã³ã¿å¶å¾¡ã³ã¼ããæ¥ã¦ãç¡è¦ãããã¨ãã§ããã¨ã³ããªã追å ããã ããã©ã«ãã¯ä¸ä½äºææ§ã®ããããªãã ; Ignore printer control sequence(MC) IgnorePrinterCtrl=off ã©ã³ãã³ã°è©¦é¨ä¸ããã¹ãããããªã³ã¿å¶å¾¡ã³ã¼ããå±ãã¨ãå°å·ãã¤ã¢ãã°ã 表示ãããTera Termãä¸æåæ¢ãã試é¨ãæ¢ã¾ããªãããã«ãããã ã¡ã¢ï¼ # echo -e '\x1b\x5b\x69' ã¨ããã°ãæ¬ä¼¼çã«ãã¹ãã§ãããESC [ 'i' ã§MC(Media Copy)ã示ãã Modified Paths: -------------- trunk/installer/release/TERATERM.INI trunk/teraterm/common/tttypes.h trunk/teraterm/teraterm/vtterm.c trunk/teraterm/ttpset/ttset.c -------------- next part -------------- Modified: trunk/installer/release/TERATERM.INI =================================================================== --- trunk/installer/release/TERATERM.INI 2011-03-22 00:05:50 UTC (rev 4392) +++ trunk/installer/release/TERATERM.INI 2011-03-25 12:04:41 UTC (rev 4393) @@ -450,6 +450,9 @@ ; Direct pass-thru printing PassThruPort= +; Ignore printer control sequence(MC) +IgnorePrinterCtrl=off + ; Delay for paste per each lines (in msec) PasteDelayPerLine=10 Modified: trunk/teraterm/common/tttypes.h =================================================================== --- trunk/teraterm/common/tttypes.h 2011-03-22 00:05:50 UTC (rev 4392) +++ trunk/teraterm/common/tttypes.h 2011-03-25 12:04:41 UTC (rev 4393) @@ -506,6 +506,7 @@ WORD DisableMenuNewConnection; char TerminalUID[9]; WORD ConfirmChangePasteCR; + BOOL IgnorePrinterCtrl; }; typedef struct tttset TTTSet, *PTTSet; Modified: trunk/teraterm/teraterm/vtterm.c =================================================================== --- trunk/teraterm/teraterm/vtterm.c 2011-03-22 00:05:50 UTC (rev 4392) +++ trunk/teraterm/teraterm/vtterm.c 2011-03-25 12:04:41 UTC (rev 4393) @@ -1724,6 +1724,15 @@ void CS_i_Mode() // MC { + /* v^§äR[hªÄà³·éB + * jO±AzXg©çv^§äR[hªÍÆAóü_CAOª + * \¦³êATera Termªêâ~µA±ª~ÜçÈ¢æ¤Éµ½¢B + * (2011.3.25 yutaka) + */ + if (ts.IgnorePrinterCtrl) + return; + + if (Param[1]==-1) Param[1] = 0; switch (Param[1]) { /* print screen */ Modified: trunk/teraterm/ttpset/ttset.c =================================================================== --- trunk/teraterm/ttpset/ttset.c 2011-03-22 00:05:50 UTC (rev 4392) +++ trunk/teraterm/ttpset/ttset.c 2011-03-25 12:04:41 UTC (rev 4393) @@ -922,6 +922,9 @@ GetPrivateProfileString(Section, "PassThruPort", "", ts->PrnDev, sizeof(ts->PrnDev), FName); + /* v^p§äR[hð³·é©Ç¤© */ + ts->IgnorePrinterCtrl = GetOnOff(Section, "IgnorePrinterCtrl", FName, FALSE); + /* Printer Font --- special option */ GetPrivateProfileString(Section, "PrnFont", "", Temp, sizeof(Temp), FName); @@ -2105,6 +2108,9 @@ /* -- special option */ WritePrivateProfileString(Section, "PassThruPort", ts->PrnDev, FName); + /* v^p§äR[hð³·é©Ç¤© */ + WriteOnOff(Section, "IgnorePrinterCtrl", FName, ts->IgnorePrinterCtrl); + /* Printer Font --- special option */ WriteFont(Section, "PrnFont", FName, ts->PrnFont, ts->PrnFontSize.x, ts->PrnFontSize.y,