| 2820 |
ParamPort = IdSerial; |
ParamPort = IdSerial; |
| 2821 |
ParamBaud = str2id(BaudList, &Temp[6], IdBaudNone); |
ParamBaud = str2id(BaudList, &Temp[6], IdBaudNone); |
| 2822 |
} |
} |
| 2823 |
else if (_strnicmp(Temp, "/B", 2) == 0) { /* telnet binary */ |
else if (_stricmp(Temp, "/B") == 0) { /* telnet binary */ |
| 2824 |
ParamPort = IdTCPIP; |
ParamPort = IdTCPIP; |
| 2825 |
ParamBin = 1; |
ParamBin = 1; |
| 2826 |
} |
} |
| 2835 |
strncpy_s(DDETopic, 21, &Temp[3], _TRUNCATE); // 21 = sizeof(TopicName) |
strncpy_s(DDETopic, 21, &Temp[3], _TRUNCATE); // 21 = sizeof(TopicName) |
| 2836 |
} |
} |
| 2837 |
// "New connection" ダイアログを表示しない (2008.11.14 maya) |
// "New connection" ダイアログを表示しない (2008.11.14 maya) |
| 2838 |
else if (_strnicmp(Temp, "/DS", 3) == 0) { |
else if (_stricmp(Temp, "/DS") == 0) { |
| 2839 |
ts->HostDialogOnStartup = FALSE; |
ts->HostDialogOnStartup = FALSE; |
| 2840 |
} |
} |
| 2841 |
// TCPLocalEcho/TCPCRSend を無効にする (maya 2007.4.25) |
// TCPLocalEcho/TCPCRSend を無効にする (maya 2007.4.25) |
| 2842 |
else if (_strnicmp(Temp, "/E", 2) == 0) { |
else if (_stricmp(Temp, "/E") == 0) { |
| 2843 |
ts->DisableTCPEchoCR = TRUE; |
ts->DisableTCPEchoCR = TRUE; |
| 2844 |
} |
} |
| 2845 |
else if (_strnicmp(Temp, "/FD=", 4) == 0) { /* file transfer directory */ |
else if (_strnicmp(Temp, "/FD=", 4) == 0) { /* file transfer directory */ |
| 2852 |
_chdir(TempDir); |
_chdir(TempDir); |
| 2853 |
} |
} |
| 2854 |
} |
} |
| 2855 |
else if (_strnicmp(Temp, "/H", 2) == 0) /* hide title bar */ |
else if (_stricmp(Temp, "/H") == 0) /* hide title bar */ |
| 2856 |
ts->HideTitle = 1; |
ts->HideTitle = 1; |
| 2857 |
else if (_strnicmp(Temp, "/I", 2) == 0) /* iconize */ |
else if (_stricmp(Temp, "/I") == 0) /* iconize */ |
| 2858 |
ts->Minimize = 1; |
ts->Minimize = 1; |
| 2859 |
else if (_strnicmp(Temp, "/K=", 3) == 0) { /* Keyboard setup file */ |
else if (_strnicmp(Temp, "/K=", 3) == 0) { /* Keyboard setup file */ |
| 2860 |
Dequote(&Temp[3], Temp2); |
Dequote(&Temp[3], Temp2); |
| 2863 |
} |
} |
| 2864 |
else if ((_strnicmp(Temp, "/KR=", 4) == 0) || |
else if ((_strnicmp(Temp, "/KR=", 4) == 0) || |
| 2865 |
(_strnicmp(Temp, "/KT=", 4) == 0)) { /* kanji code */ |
(_strnicmp(Temp, "/KT=", 4) == 0)) { /* kanji code */ |
| 2866 |
if (_strnicmp(&Temp[4], "UTF8m", 5) == 0 || |
if (_stricmp(&Temp[4], "UTF8m") == 0 || |
| 2867 |
_strnicmp(&Temp[4], "UTF-8m", 6) == 0) |
_stricmp(&Temp[4], "UTF-8m") == 0) |
| 2868 |
c = IdUTF8m; |
c = IdUTF8m; |
| 2869 |
else if (_strnicmp(&Temp[4], "UTF8", 4) == 0 || |
else if (_stricmp(&Temp[4], "UTF8") == 0 || |
| 2870 |
_strnicmp(&Temp[4], "UTF-8", 5) == 0) |
_stricmp(&Temp[4], "UTF-8") == 0) |
| 2871 |
c = IdUTF8; |
c = IdUTF8; |
| 2872 |
else if (_strnicmp(&Temp[4], "SJIS", 4) == 0 || |
else if (_stricmp(&Temp[4], "SJIS") == 0 || |
| 2873 |
_strnicmp(&Temp[4], "KS5601", 6) == 0) |
_stricmp(&Temp[4], "KS5601") == 0) |
| 2874 |
c = IdSJIS; |
c = IdSJIS; |
| 2875 |
else if (_strnicmp(&Temp[4], "EUC", 3) == 0) |
else if (_stricmp(&Temp[4], "EUC") == 0) |
| 2876 |
c = IdEUC; |
c = IdEUC; |
| 2877 |
else if (_strnicmp(&Temp[4], "JIS", 3) == 0) |
else if (_stricmp(&Temp[4], "JIS") == 0) |
| 2878 |
c = IdJIS; |
c = IdJIS; |
| 2879 |
else |
else |
| 2880 |
c = -1; |
c = -1; |
| 2920 |
/* Disable auto connect to serial when macro mode (2006.9.15 maya) */ |
/* Disable auto connect to serial when macro mode (2006.9.15 maya) */ |
| 2921 |
ts->ComAutoConnect = FALSE; |
ts->ComAutoConnect = FALSE; |
| 2922 |
} |
} |
| 2923 |
else if (_strnicmp(Temp, "/M", 2) == 0) { /* macro option without file name */ |
else if (_stricmp(Temp, "/M") == 0) { /* macro option without file name */ |
| 2924 |
strncpy_s(ts->MacroFN, sizeof(ts->MacroFN), "*", _TRUNCATE); |
strncpy_s(ts->MacroFN, sizeof(ts->MacroFN), "*", _TRUNCATE); |
| 2925 |
/* Disable auto connect to serial when macro mode (2006.9.15 maya) */ |
/* Disable auto connect to serial when macro mode (2006.9.15 maya) */ |
| 2926 |
ts->ComAutoConnect = FALSE; |
ts->ComAutoConnect = FALSE; |
| 2937 |
if (strlen(ts->HostName) > 0) |
if (strlen(ts->HostName) > 0) |
| 2938 |
ParamPort = IdFile; |
ParamPort = IdFile; |
| 2939 |
} |
} |
| 2940 |
else if (_strnicmp(Temp, "/T=0", 4) == 0) { /* telnet disable */ |
else if (_stricmp(Temp, "/T=0") == 0) { /* telnet disable */ |
| 2941 |
ParamPort = IdTCPIP; |
ParamPort = IdTCPIP; |
| 2942 |
ParamTel = 0; |
ParamTel = 0; |
| 2943 |
} |
} |
| 2944 |
else if (_strnicmp(Temp, "/T=1", 4) == 0) { /* telnet enable */ |
else if (_stricmp(Temp, "/T=1") == 0) { /* telnet enable */ |
| 2945 |
ParamPort = IdTCPIP; |
ParamPort = IdTCPIP; |
| 2946 |
ParamTel = 1; |
ParamTel = 1; |
| 2947 |
} |
} |
| 2951 |
else if (_strnicmp(Temp, "/VTICON=", 8) == 0) { /* VT window icon */ |
else if (_strnicmp(Temp, "/VTICON=", 8) == 0) { /* VT window icon */ |
| 2952 |
ts->VTIcon = IconName2IconId(&Temp[8]); |
ts->VTIcon = IconName2IconId(&Temp[8]); |
| 2953 |
} |
} |
| 2954 |
else if (_strnicmp(Temp, "/V", 2) == 0) { /* invisible */ |
else if (_stricmp(Temp, "/V") == 0) { /* invisible */ |
| 2955 |
ts->HideWindow = 1; |
ts->HideWindow = 1; |
| 2956 |
} |
} |
| 2957 |
else if (_strnicmp(Temp, "/W=", 3) == 0) { /* Window title */ |
else if (_strnicmp(Temp, "/W=", 3) == 0) { /* Window title */ |
| 2972 |
} |
} |
| 2973 |
} |
} |
| 2974 |
#ifndef NO_INET6 |
#ifndef NO_INET6 |
| 2975 |
else if (_strnicmp(Temp, "/4", 2) == 0) /* Protocol Tera Term speaking */ |
else if (_stricmp(Temp, "/4") == 0) /* Protocol Tera Term speaking */ |
| 2976 |
ts->ProtocolFamily = AF_INET; |
ts->ProtocolFamily = AF_INET; |
| 2977 |
else if (_strnicmp(Temp, "/6", 2) == 0) |
else if (_stricmp(Temp, "/6") == 0) |
| 2978 |
ts->ProtocolFamily = AF_INET6; |
ts->ProtocolFamily = AF_INET6; |
| 2979 |
#endif |
#endif |
| 2980 |
else if (_strnicmp(Temp, "/DUPLICATE", 9) == 0) { // duplicate session (2004.12.7. yutaka) |
else if (_stricmp(Temp, "/DUPLICATE") == 0) { // duplicate session (2004.12.7. yutaka) |
| 2981 |
ts->DuplicateSession = 1; |
ts->DuplicateSession = 1; |
| 2982 |
|
|
| 2983 |
} |
} |