svnno****@sourc*****
svnno****@sourc*****
2010年 11月 10日 (水) 15:20:21 JST
Revision: 4151 http://sourceforge.jp/projects/ttssh2/svn/view?view=rev&revision=4151 Author: doda Date: 2010-11-10 15:20:21 +0900 (Wed, 10 Nov 2010) Log Message: ----------- å§ç¸®ãæå¹/ç¡å¹ã«ãããªãã·ã§ã³ã/ssh-C, /ssh-c ã追å ã Modified Paths: -------------- trunk/ttssh2/ttxssh/ttxssh.c -------------- next part -------------- Modified: trunk/ttssh2/ttxssh/ttxssh.c =================================================================== --- trunk/ttssh2/ttxssh/ttxssh.c 2010-11-06 20:43:44 UTC (rev 4150) +++ trunk/ttssh2/ttxssh/ttxssh.c 2010-11-10 06:20:21 UTC (rev 4151) @@ -1529,6 +1529,19 @@ read_ssh_options_from_user_file(pvar, option + 13); DeleteFile(option + 13); + } else if (MATCH_STR(option + 4, "-C=") == 0) { + pvar->settings.CompressionLevel = atoi(option+7); + if (pvar->settings.CompressionLevel < 0) { + pvar->settings.CompressionLevel = 0; + } + else if (pvar->settings.CompressionLevel > 9) { + pvar->settings.CompressionLevel = 9; + } + } else if (MATCH_STR(option + 4, "-C") == 0) { + pvar->settings.CompressionLevel = 6; + } else if (MATCH_STR(option + 4, "-c") == 0) { + pvar->settings.CompressionLevel = 0; + // /ssh1 Æ /ssh2 IvVÌVKÇÁ (2006.9.16 maya) } else if (MATCH_STR(option + 4, "1") == 0) { pvar->settings.Enabled = 1;