svnno****@sourc*****
svnno****@sourc*****
2010年 8月 15日 (日) 20:59:22 JST
Revision: 3998 http://sourceforge.jp/projects/ttssh2/svn/view?view=rev&revision=3998 Author: doda Date: 2010-08-15 20:59:22 +0900 (Sun, 15 Aug 2010) Log Message: ----------- DECSLE で複数のパラメータが正しく扱えていなかったのを修正。 Modified Paths: -------------- trunk/teraterm/teraterm/vtterm.c -------------- next part -------------- Modified: trunk/teraterm/teraterm/vtterm.c =================================================================== --- trunk/teraterm/teraterm/vtterm.c 2010-08-14 18:37:44 UTC (rev 3997) +++ trunk/teraterm/teraterm/vtterm.c 2010-08-15 11:59:22 UTC (rev 3998) @@ -2435,6 +2435,7 @@ void CSQuote(BYTE b) { + int i; switch (b) { case 'w': // Enable Filter Rectangle (DECEFR) break; @@ -2468,26 +2469,28 @@ break; case '{': // Select Locator Events (DECSLE) - if (Param[1] < 0) { - Param[1] = 0; + for (i=1; i<=NParam; i++) { + if (Param[i] < 0) { + Param[i] = 0; + } + switch (Param[i]) { + case 0: + DecLocatorFlag &= ~(DecLocatorButtonUp | DecLocatorButtonDown); + break; + case 1: + DecLocatorFlag |= DecLocatorButtonDown; + break; + case 2: + DecLocatorFlag &= ~DecLocatorButtonDown; + break; + case 3: + DecLocatorFlag |= DecLocatorButtonUp; + break; + case 4: + DecLocatorFlag &= ~DecLocatorButtonUp; + break; + } } - switch (Param[1]) { - case 0: - DecLocatorFlag &= ~(DecLocatorButtonUp | DecLocatorButtonDown); - break; - case 1: - DecLocatorFlag |= DecLocatorButtonDown; - break; - case 2: - DecLocatorFlag &= ~DecLocatorButtonDown; - break; - case 3: - DecLocatorFlag |= DecLocatorButtonUp; - break; - case 4: - DecLocatorFlag &= ~DecLocatorButtonUp; - break; - } break; case '|': // Request Locator Position (DECRQLP)