| 415 |
ts->PopupMenu = GetOnOff(Section, "PopupMenu", FName, FALSE); |
ts->PopupMenu = GetOnOff(Section, "PopupMenu", FName, FALSE); |
| 416 |
|
|
| 417 |
/* PC-Style bold color mapping */ |
/* PC-Style bold color mapping */ |
| 418 |
ts->ColorFlag |= |
if (GetOnOff(Section, "PcBoldColor", FName, FALSE)) |
| 419 |
CF_PCBOLD16 * GetOnOff(Section, "PcBoldColor", FName, FALSE); |
ts->ColorFlag |= CF_PCBOLD16; |
| 420 |
|
|
| 421 |
/* aixterm style 16 colors mode */ |
/* aixterm style 16 colors mode */ |
| 422 |
ts->ColorFlag |= |
if (GetOnOff(Section, "Aixterm16Color", FName, FALSE)) |
| 423 |
CF_AIXTERM16 * GetOnOff(Section, "Aixterm16Color", FName, FALSE); |
ts->ColorFlag |= CF_AIXTERM16; |
| 424 |
|
|
| 425 |
/* xterm style 256 colors mode */ |
/* xterm style 256 colors mode */ |
| 426 |
ts->ColorFlag |= |
if (GetOnOff(Section, "Xterm256Color", FName, TRUE)) |
| 427 |
CF_XTERM256 * GetOnOff(Section, "Xterm256Color", FName, TRUE); |
ts->ColorFlag |= CF_XTERM256; |
| 428 |
|
|
| 429 |
/* Enable scroll buffer */ |
/* Enable scroll buffer */ |
| 430 |
ts->EnableScrollBuff = |
ts->EnableScrollBuff = |
| 453 |
ts->VTBoldColor[i] = RGB((BYTE) ts->TmpColor[0][i * 3], |
ts->VTBoldColor[i] = RGB((BYTE) ts->TmpColor[0][i * 3], |
| 454 |
(BYTE) ts->TmpColor[0][i * 3 + 1], |
(BYTE) ts->TmpColor[0][i * 3 + 1], |
| 455 |
(BYTE) ts->TmpColor[0][i * 3 + 2]); |
(BYTE) ts->TmpColor[0][i * 3 + 2]); |
| 456 |
ts->ColorFlag |= |
if (GetOnOff(Section, "EnableBoldAttrColor", FName, TRUE)) |
| 457 |
GetOnOff(Section, "EnableBoldAttrColor", FName, TRUE)?CF_BOLDCOLOR:0; |
ts->ColorFlag |= CF_BOLDCOLOR; |
|
|
|
| 458 |
|
|
| 459 |
/* VT Blink Color */ |
/* VT Blink Color */ |
| 460 |
GetPrivateProfileString(Section, "VTBlinkColor", "255,0,0,255,255,255", |
GetPrivateProfileString(Section, "VTBlinkColor", "255,0,0,255,255,255", |
| 465 |
ts->VTBlinkColor[i] = RGB((BYTE) ts->TmpColor[0][i * 3], |
ts->VTBlinkColor[i] = RGB((BYTE) ts->TmpColor[0][i * 3], |
| 466 |
(BYTE) ts->TmpColor[0][i * 3 + 1], |
(BYTE) ts->TmpColor[0][i * 3 + 1], |
| 467 |
(BYTE) ts->TmpColor[0][i * 3 + 2]); |
(BYTE) ts->TmpColor[0][i * 3 + 2]); |
| 468 |
ts->ColorFlag |= |
if (GetOnOff(Section, "EnableBlinkAttrColor", FName, TRUE)) |
| 469 |
GetOnOff(Section, "EnableBlinkAttrColor", FName, TRUE)?CF_BLINKCOLOR:0; |
ts->ColorFlag |= CF_BLINKCOLOR; |
| 470 |
|
|
| 471 |
/* VT Reverse Color */ |
/* VT Reverse Color */ |
| 472 |
GetPrivateProfileString(Section, "VTReverseColor", "255,255,255,0,0,0", |
GetPrivateProfileString(Section, "VTReverseColor", "255,255,255,0,0,0", |
| 477 |
ts->VTReverseColor[i] = RGB((BYTE) ts->TmpColor[0][i * 3], |
ts->VTReverseColor[i] = RGB((BYTE) ts->TmpColor[0][i * 3], |
| 478 |
(BYTE) ts->TmpColor[0][i * 3 + 1], |
(BYTE) ts->TmpColor[0][i * 3 + 1], |
| 479 |
(BYTE) ts->TmpColor[0][i * 3 + 2]); |
(BYTE) ts->TmpColor[0][i * 3 + 2]); |
| 480 |
ts->ColorFlag |= |
if (GetOnOff(Section, "EnableReverseAttrColor", FName, FALSE)) |
| 481 |
GetOnOff(Section, "EnableReverseAttrColor", FName, FALSE)?CF_REVERSECOLOR:0; |
ts->ColorFlag |= CF_REVERSECOLOR; |
| 482 |
|
|
| 483 |
ts->EnableClickableUrl = |
ts->EnableClickableUrl = |
| 484 |
GetOnOff(Section, "EnableClickableUrl", FName, FALSE); |
GetOnOff(Section, "EnableClickableUrl", FName, FALSE); |
| 492 |
ts->URLColor[i] = RGB((BYTE) ts->TmpColor[0][i * 3], |
ts->URLColor[i] = RGB((BYTE) ts->TmpColor[0][i * 3], |
| 493 |
(BYTE) ts->TmpColor[0][i * 3 + 1], |
(BYTE) ts->TmpColor[0][i * 3 + 1], |
| 494 |
(BYTE) ts->TmpColor[0][i * 3 + 2]); |
(BYTE) ts->TmpColor[0][i * 3 + 2]); |
| 495 |
ts->ColorFlag |= |
if (GetOnOff(Section, "EnableURLColor", FName, TRUE)) |
| 496 |
GetOnOff(Section, "EnableURLColor", FName, TRUE)?CF_URLCOLOR:0; |
ts->ColorFlag |= CF_URLCOLOR; |
| 497 |
|
|
| 498 |
/* TEK Color */ |
/* TEK Color */ |
| 499 |
GetPrivateProfileString(Section, "TEKColor", "0,0,0,255,255,255", |
GetPrivateProfileString(Section, "TEKColor", "0,0,0,255,255,255", |
| 566 |
ts->ANSIColor[i] = GetNearestColor(TmpDC, ts->ANSIColor[i]); |
ts->ANSIColor[i] = GetNearestColor(TmpDC, ts->ANSIColor[i]); |
| 567 |
#endif /* NO_ANSI_COLOR_EXTENSION */ |
#endif /* NO_ANSI_COLOR_EXTENSION */ |
| 568 |
ReleaseDC(0, TmpDC); |
ReleaseDC(0, TmpDC); |
| 569 |
ts->ColorFlag |= |
if (GetOnOff(Section, "EnableANSIColor", FName, TRUE)) |
| 570 |
GetOnOff(Section, "EnableANSIColor", FName, TRUE)?CF_ANSICOLOR:0; |
ts->ColorFlag |= CF_ANSICOLOR; |
| 571 |
|
|
| 572 |
/* TEK color emulation */ |
/* TEK color emulation */ |
| 573 |
ts->TEKColorEmu = GetOnOff(Section, "TEKColorEmulation", FName, FALSE); |
ts->TEKColorEmu = GetOnOff(Section, "TEKColorEmulation", FName, FALSE); |
| 757 |
|
|
| 758 |
/*--------------------------------------------------*/ |
/*--------------------------------------------------*/ |
| 759 |
/* 8 bit control code flag -- special option */ |
/* 8 bit control code flag -- special option */ |
| 760 |
ts->TermFlag |= |
if (GetOnOff(Section, "Accept8BitCtrl", FName, TRUE)) |
| 761 |
TF_ACCEPT8BITCTRL * |
ts->TermFlag |= TF_ACCEPT8BITCTRL; |
|
GetOnOff(Section, "Accept8BitCtrl", FName, TRUE); |
|
| 762 |
|
|
| 763 |
/* Wrong sequence flag -- special option */ |
/* Wrong sequence flag -- special option */ |
| 764 |
ts->TermFlag |= |
if (GetOnOff(Section, "AllowWrongSequence", FName, FALSE)) |
| 765 |
TF_ALLOWWRONGSEQUENCE * |
ts->TermFlag |= TF_ALLOWWRONGSEQUENCE; |
|
GetOnOff(Section, "AllowWrongSequence", FName, FALSE); |
|
| 766 |
|
|
| 767 |
if (((ts->TermFlag & TF_ALLOWWRONGSEQUENCE) == 0) && |
if (((ts->TermFlag & TF_ALLOWWRONGSEQUENCE) == 0) && |
| 768 |
(ts->KanjiOut == IdKanjiOutH)) |
(ts->KanjiOut == IdKanjiOutH)) |
| 769 |
ts->KanjiOut = IdKanjiOutJ; |
ts->KanjiOut = IdKanjiOutJ; |
| 770 |
|
|
| 771 |
// Auto file renaming --- special option |
// Auto file renaming --- special option |
| 772 |
ts->FTFlag |= |
if (GetOnOff(Section, "AutoFileRename", FName, FALSE)) |
| 773 |
FT_RENAME * GetOnOff(Section, "AutoFileRename", FName, FALSE); |
ts->FTFlag |= FT_RENAME; |
| 774 |
|
|
| 775 |
// Auto invoking (character set->G0->GL) --- special option |
// Auto invoking (character set->G0->GL) --- special option |
| 776 |
ts->TermFlag |= |
if (GetOnOff(Section, "AutoInvoke", FName, FALSE)) |
| 777 |
TF_AUTOINVOKE * GetOnOff(Section, "AutoInvoke", FName, FALSE); |
ts->TermFlag |= TF_AUTOINVOKE; |
| 778 |
|
|
| 779 |
// Auto text copy --- special option |
// Auto text copy --- special option |
| 780 |
ts->AutoTextCopy = GetOnOff(Section, "AutoTextCopy", FName, TRUE); |
ts->AutoTextCopy = GetOnOff(Section, "AutoTextCopy", FName, TRUE); |
| 781 |
|
|
| 782 |
/* Back wrap -- special option */ |
/* Back wrap -- special option */ |
| 783 |
ts->TermFlag |= |
if (GetOnOff(Section, "BackWrap", FName, FALSE)) |
| 784 |
TF_BACKWRAP * GetOnOff(Section, "BackWrap", FName, FALSE); |
ts->TermFlag |= TF_BACKWRAP; |
| 785 |
|
|
| 786 |
/* Beep type -- special option */ |
/* Beep type -- special option */ |
| 787 |
GetPrivateProfileString(Section, "Beep", "", Temp, sizeof(Temp), FName); |
GetPrivateProfileString(Section, "Beep", "", Temp, sizeof(Temp), FName); |
| 793 |
ts->Beep = IdBeepOn; |
ts->Beep = IdBeepOn; |
| 794 |
|
|
| 795 |
/* Beep on connection & disconnection -- special option */ |
/* Beep on connection & disconnection -- special option */ |
| 796 |
ts->PortFlag |= |
if (GetOnOff(Section, "BeepOnConnect", FName, FALSE)) |
| 797 |
PF_BEEPONCONNECT * GetOnOff(Section, "BeepOnConnect", FName, |
ts->PortFlag |= PF_BEEPONCONNECT; |
|
FALSE); |
|
| 798 |
|
|
| 799 |
/* Auto B-Plus activation -- special option */ |
/* Auto B-Plus activation -- special option */ |
| 800 |
ts->FTFlag |= FT_BPAUTO * GetOnOff(Section, "BPAuto", FName, FALSE); |
if (GetOnOff(Section, "BPAuto", FName, FALSE)) |
| 801 |
|
ts->FTFlag |= FT_BPAUTO; |
| 802 |
if ((ts->FTFlag & FT_BPAUTO) != 0) { /* Answerback */ |
if ((ts->FTFlag & FT_BPAUTO) != 0) { /* Answerback */ |
| 803 |
strncpy_s(ts->Answerback, sizeof(ts->Answerback), "\020++\0200", |
strncpy_s(ts->Answerback, sizeof(ts->Answerback), "\020++\0200", |
| 804 |
_TRUNCATE); |
_TRUNCATE); |
| 806 |
} |
} |
| 807 |
|
|
| 808 |
/* B-Plus ESCCTL flag -- special option */ |
/* B-Plus ESCCTL flag -- special option */ |
| 809 |
ts->FTFlag |= |
if (GetOnOff(Section, "BPEscCtl", FName, FALSE)) |
| 810 |
FT_BPESCCTL * GetOnOff(Section, "BPEscCtl", FName, FALSE); |
ts->FTFlag |= FT_BPESCCTL; |
| 811 |
|
|
| 812 |
/* B-Plus log -- special option */ |
/* B-Plus log -- special option */ |
| 813 |
ts->LogFlag |= LOG_BP * GetOnOff(Section, "BPLog", FName, FALSE); |
if (GetOnOff(Section, "BPLog", FName, FALSE)) |
| 814 |
|
ts->LogFlag |= LOG_BP; |
| 815 |
|
|
| 816 |
/* Clear serial port buffer when port opening -- special option */ |
/* Clear serial port buffer when port opening -- special option */ |
| 817 |
ts->ClearComBuffOnOpen = |
ts->ClearComBuffOnOpen = |
| 818 |
GetOnOff(Section, "ClearComBuffOnOpen", FName, TRUE); |
GetOnOff(Section, "ClearComBuffOnOpen", FName, TRUE); |
| 819 |
|
|
| 820 |
/* Confirm disconnection -- special option */ |
/* Confirm disconnection -- special option */ |
| 821 |
ts->PortFlag |= |
if (GetOnOff(Section, "ConfirmDisconnect", FName, TRUE)) |
| 822 |
PF_CONFIRMDISCONN * GetOnOff(Section, "ConfirmDisconnect", |
ts->PortFlag |= PF_CONFIRMDISCONN; |
|
FName, TRUE); |
|
| 823 |
|
|
| 824 |
/* Ctrl code in Kanji -- special option */ |
/* Ctrl code in Kanji -- special option */ |
| 825 |
ts->TermFlag |= |
if (GetOnOff(Section, "CtrlInKanji", FName, TRUE)) |
| 826 |
TF_CTRLINKANJI * GetOnOff(Section, "CtrlInKanji", FName, TRUE); |
ts->TermFlag |= TF_CTRLINKANJI; |
| 827 |
|
|
| 828 |
/* Debug flag -- special option */ |
/* Debug flag -- special option */ |
| 829 |
ts->Debug = GetOnOff(Section, "Debug", FName, FALSE); |
ts->Debug = GetOnOff(Section, "Debug", FName, FALSE); |
| 838 |
ts->DelimDBCS = GetOnOff(Section, "DelimDBCS", FName, TRUE); |
ts->DelimDBCS = GetOnOff(Section, "DelimDBCS", FName, TRUE); |
| 839 |
|
|
| 840 |
// Enable popup menu -- special option |
// Enable popup menu -- special option |
| 841 |
if (GetOnOff(Section, "EnablePopupMenu", FName, TRUE) == 0) |
if (GetOnOff(Section, "EnablePopupMenu", FName, TRUE)) |
| 842 |
ts->MenuFlag |= MF_NOPOPUP; |
ts->MenuFlag |= MF_NOPOPUP; |
| 843 |
|
|
| 844 |
// Enable "Show menu" -- special option |
// Enable "Show menu" -- special option |
| 845 |
if (GetOnOff(Section, "EnableShowMenu", FName, TRUE) == 0) |
if (GetOnOff(Section, "EnableShowMenu", FName, TRUE)) |
| 846 |
ts->MenuFlag |= MF_NOSHOWMENU; |
ts->MenuFlag |= MF_NOSHOWMENU; |
| 847 |
|
|
| 848 |
// Enable the status line -- special option |
// Enable the status line -- special option |
| 849 |
ts->TermFlag |= |
if (GetOnOff(Section, "EnableStatusLine", FName, TRUE)) |
| 850 |
TF_ENABLESLINE * GetOnOff(Section, "EnableStatusLine", FName, TRUE); |
ts->TermFlag |= TF_ENABLESLINE; |
| 851 |
|
|
| 852 |
// fixed JIS --- special |
// fixed JIS --- special |
| 853 |
ts->TermFlag |= |
if (GetOnOff(Section, "FixedJIS", FName, FALSE)) |
| 854 |
TF_FIXEDJIS * GetOnOff(Section, "FixedJIS", FName, FALSE); |
ts->TermFlag |= TF_FIXEDJIS; |
| 855 |
|
|
| 856 |
/* IME Flag -- special option */ |
/* IME Flag -- special option */ |
| 857 |
ts->UseIME = GetOnOff(Section, "IME", FName, TRUE); |
ts->UseIME = GetOnOff(Section, "IME", FName, TRUE); |
| 860 |
ts->IMEInline = GetOnOff(Section, "IMEInline", FName, TRUE); |
ts->IMEInline = GetOnOff(Section, "IMEInline", FName, TRUE); |
| 861 |
|
|
| 862 |
/* Kermit log -- special option */ |
/* Kermit log -- special option */ |
| 863 |
ts->LogFlag |= LOG_KMT * GetOnOff(Section, "KmtLog", FName, FALSE); |
if (GetOnOff(Section, "KmtLog", FName, FALSE)) |
| 864 |
|
ts->LogFlag |= LOG_KMT; |
| 865 |
|
|
| 866 |
// Enable language selection -- special option |
// Enable language selection -- special option |
| 867 |
if (GetOnOff(Section, "LanguageSelection", FName, TRUE) == 0) |
if (GetOnOff(Section, "LanguageSelection", FName, TRUE)) |
| 868 |
ts->MenuFlag |= MF_NOLANGUAGE; |
ts->MenuFlag |= MF_NOLANGUAGE; |
| 869 |
|
|
| 870 |
/* Maximum scroll buffer size -- special option */ |
/* Maximum scroll buffer size -- special option */ |
| 926 |
GetNthNum(Temp, 1 + i, &ts->PrnMargin[i]); |
GetNthNum(Temp, 1 + i, &ts->PrnMargin[i]); |
| 927 |
|
|
| 928 |
/* Quick-VAN log -- special option */ |
/* Quick-VAN log -- special option */ |
| 929 |
ts->LogFlag |= LOG_QV * GetOnOff(Section, "QVLog", FName, FALSE); |
if (GetOnOff(Section, "QVLog", FName, FALSE)) |
| 930 |
|
ts->LogFlag |= LOG_QV; |
| 931 |
|
|
| 932 |
/* Quick-VAN window size -- special */ |
/* Quick-VAN window size -- special */ |
| 933 |
ts->QVWinSize = GetPrivateProfileInt(Section, "QVWinSize", 8, FName); |
ts->QVWinSize = GetPrivateProfileInt(Section, "QVWinSize", 8, FName); |
| 968 |
ts->TelEcho = GetOnOff(Section, "TelEcho", FName, FALSE); |
ts->TelEcho = GetOnOff(Section, "TelEcho", FName, FALSE); |
| 969 |
|
|
| 970 |
/* Telnet log -- special option */ |
/* Telnet log -- special option */ |
| 971 |
ts->LogFlag |= LOG_TEL * GetOnOff(Section, "TelLog", FName, FALSE); |
if (GetOnOff(Section, "TelLog", FName, FALSE)) |
| 972 |
|
ts->LogFlag |= LOG_TEL; |
| 973 |
|
|
| 974 |
/* TCP port num for telnet -- special option */ |
/* TCP port num for telnet -- special option */ |
| 975 |
ts->TelPort = GetPrivateProfileInt(Section, "TelPort", 23, FName); |
ts->TelPort = GetPrivateProfileInt(Section, "TelPort", 23, FName); |
| 995 |
else |
else |
| 996 |
ts->TCPCRSend = 0; // disabled |
ts->TCPCRSend = 0; // disabled |
| 997 |
|
|
| 998 |
/* Use text (background) color for "white (black)" |
/* Use text (background) color for "white (black)" --- special option */ |
| 999 |
--- special option */ |
if (GetOnOff(Section, "UseTextColor", FName, FALSE)) |
| 1000 |
ts->ColorFlag |= |
ts->ColorFlag |= CF_USETEXTCOLOR; |
|
CF_USETEXTCOLOR * GetOnOff(Section, "UseTextColor", FName, FALSE); |
|
| 1001 |
|
|
| 1002 |
/* Title format -- special option */ |
/* Title format -- special option */ |
| 1003 |
ts->TitleFormat = |
ts->TitleFormat = |
| 1037 |
GetNthNum(Temp, 2, (int far *) &ts->TEKPPI.y); |
GetNthNum(Temp, 2, (int far *) &ts->TEKPPI.y); |
| 1038 |
|
|
| 1039 |
// Show "Window" menu -- special option |
// Show "Window" menu -- special option |
| 1040 |
ts->MenuFlag |= |
if (GetOnOff(Section, "WindowMenu", FName, TRUE)) |
| 1041 |
MF_SHOWWINMENU * GetOnOff(Section, "WindowMenu", FName, TRUE); |
ts->MenuFlag |= MF_SHOWWINMENU; |
| 1042 |
|
|
| 1043 |
/* XMODEM log -- special option */ |
/* XMODEM log -- special option */ |
| 1044 |
ts->LogFlag |= LOG_X * GetOnOff(Section, "XmodemLog", FName, FALSE); |
if (GetOnOff(Section, "XmodemLog", FName, FALSE)) |
| 1045 |
|
ts->LogFlag |= LOG_X; |
| 1046 |
|
|
| 1047 |
/* YMODEM log -- special option */ |
/* YMODEM log -- special option */ |
| 1048 |
ts->LogFlag |= LOG_Y * GetOnOff(Section, "YmodemLog", FName, FALSE); |
if (GetOnOff(Section, "YmodemLog", FName, FALSE)) |
| 1049 |
|
ts->LogFlag |= LOG_Y; |
| 1050 |
|
|
| 1051 |
/* Auto ZMODEM activation -- special option */ |
/* Auto ZMODEM activation -- special option */ |
| 1052 |
ts->FTFlag |= FT_ZAUTO * GetOnOff(Section, "ZmodemAuto", FName, FALSE); |
if (GetOnOff(Section, "ZmodemAuto", FName, FALSE)) |
| 1053 |
|
ts->FTFlag |= FT_ZAUTO; |
| 1054 |
|
|
| 1055 |
/* ZMODEM data subpacket length for sending -- special */ |
/* ZMODEM data subpacket length for sending -- special */ |
| 1056 |
ts->ZmodemDataLen = |
ts->ZmodemDataLen = |
| 1060 |
GetPrivateProfileInt(Section, "ZmodemWinSize", 32767, FName); |
GetPrivateProfileInt(Section, "ZmodemWinSize", 32767, FName); |
| 1061 |
|
|
| 1062 |
/* ZMODEM ESCCTL flag -- special option */ |
/* ZMODEM ESCCTL flag -- special option */ |
| 1063 |
ts->FTFlag |= |
if (GetOnOff(Section, "ZmodemEscCtl", FName, FALSE)) |
| 1064 |
FT_ZESCCTL * GetOnOff(Section, "ZmodemEscCtl", FName, FALSE); |
ts->FTFlag |= FT_ZESCCTL; |
| 1065 |
|
|
| 1066 |
/* ZMODEM log -- special option */ |
/* ZMODEM log -- special option */ |
| 1067 |
ts->LogFlag |= LOG_Z * GetOnOff(Section, "ZmodemLog", FName, FALSE); |
if (GetOnOff(Section, "ZmodemLog", FName, FALSE)) |
| 1068 |
|
ts->LogFlag |= LOG_Z; |
| 1069 |
|
|
| 1070 |
/* ZMODEM 受信コマンド (2007.12.21 yutaka) */ |
/* ZMODEM 受信コマンド (2007.12.21 yutaka) */ |
| 1071 |
GetPrivateProfileString(Section, "ZModemRcvCommand", "rz", |
GetPrivateProfileString(Section, "ZModemRcvCommand", "rz", |