- SetDlgItemInt (hwnd, IDC_PORT, cfg.port, FALSE);
- CheckRadioButton (hwnd, IDC_PROTRAW, IDC_PROTSSH,
- cfg.protocol==PROT_SSH ? IDC_PROTSSH :
- cfg.protocol==PROT_TELNET ? IDC_PROTTELNET :
- cfg.protocol==PROT_RLOGIN ? IDC_PROTRLOGIN : IDC_PROTRAW );
- SetDlgItemInt (hwnd, IDC_PINGEDIT, cfg.ping_interval, FALSE);
-
- CheckRadioButton (hwnd, IDC_DEL008, IDC_DEL127,
- cfg.bksp_is_delete ? IDC_DEL127 : IDC_DEL008);
- CheckRadioButton (hwnd, IDC_HOMETILDE, IDC_HOMERXVT,
- cfg.rxvt_homeend ? IDC_HOMERXVT : IDC_HOMETILDE);
- CheckRadioButton (hwnd, IDC_FUNCTILDE, IDC_FUNCSCO,
- cfg.funky_type == 0 ? IDC_FUNCTILDE :
- cfg.funky_type == 1 ? IDC_FUNCLINUX :
- cfg.funky_type == 2 ? IDC_FUNCXTERM :
- cfg.funky_type == 3 ? IDC_FUNCVT400 :
- cfg.funky_type == 4 ? IDC_FUNCVT100P :
- cfg.funky_type == 5 ? IDC_FUNCSCO :
- IDC_FUNCTILDE );
- CheckDlgButton (hwnd, IDC_NOAPPLICC, cfg.no_applic_c);
- CheckDlgButton (hwnd, IDC_NOAPPLICK, cfg.no_applic_k);
- CheckRadioButton (hwnd, IDC_CURNORMAL, IDC_CURAPPLIC,
- cfg.app_cursor ? IDC_CURAPPLIC : IDC_CURNORMAL);
- CheckRadioButton (hwnd, IDC_KPNORMAL, IDC_KPNH,
- cfg.nethack_keypad ? IDC_KPNH :
- cfg.app_keypad ? IDC_KPAPPLIC : IDC_KPNORMAL);
- CheckDlgButton (hwnd, IDC_ALTF4, cfg.alt_f4);
- CheckDlgButton (hwnd, IDC_ALTSPACE, cfg.alt_space);
- CheckDlgButton (hwnd, IDC_ALTONLY, cfg.alt_only);
- CheckDlgButton (hwnd, IDC_COMPOSEKEY, cfg.compose_key);
- CheckDlgButton (hwnd, IDC_CTRLALTKEYS, cfg.ctrlaltkeys);
- CheckRadioButton (hwnd, IDC_ECHOBACKEND, IDC_ECHONO,
- cfg.localecho == LD_BACKEND ? IDC_ECHOBACKEND:
- cfg.localecho == LD_YES ? IDC_ECHOYES : IDC_ECHONO);
- CheckRadioButton (hwnd, IDC_EDITBACKEND, IDC_EDITNO,
- cfg.localedit == LD_BACKEND ? IDC_EDITBACKEND:
- cfg.localedit == LD_YES ? IDC_EDITYES : IDC_EDITNO);
- SetDlgItemText (hwnd, IDC_ANSWEREDIT, cfg.answerback);
- CheckDlgButton (hwnd, IDC_ALWAYSONTOP, cfg.alwaysontop);
- CheckDlgButton (hwnd, IDC_SCROLLKEY, cfg.scroll_on_key);
- CheckDlgButton (hwnd, IDC_SCROLLDISP, cfg.scroll_on_disp);
-
- CheckDlgButton (hwnd, IDC_WRAPMODE, cfg.wrap_mode);
- CheckDlgButton (hwnd, IDC_DECOM, cfg.dec_om);
- CheckDlgButton (hwnd, IDC_LFHASCR, cfg.lfhascr);
- SetDlgItemInt (hwnd, IDC_ROWSEDIT, cfg.height, FALSE);
- SetDlgItemInt (hwnd, IDC_COLSEDIT, cfg.width, FALSE);
- SetDlgItemInt (hwnd, IDC_SAVEEDIT, cfg.savelines, FALSE);
- fmtfont (fontstatic);
- SetDlgItemText (hwnd, IDC_FONTSTATIC, fontstatic);
- CheckRadioButton (hwnd, IDC_BELL_DISABLED, IDC_BELL_VISUAL,
- cfg.beep==BELL_DISABLED ? IDC_BELL_DISABLED :
- cfg.beep==BELL_DEFAULT ? IDC_BELL_DEFAULT :
- cfg.beep==BELL_WAVEFILE ? IDC_BELL_WAVEFILE :
- cfg.beep==BELL_VISUAL ? IDC_BELL_VISUAL : IDC_BELL_DEFAULT);
- SetDlgItemText (hwnd, IDC_BELL_WAVEEDIT, cfg.bell_wavefile);
- CheckDlgButton (hwnd, IDC_BELLOVL, cfg.bellovl);
- SetDlgItemInt (hwnd, IDC_BELLOVLN, cfg.bellovl_n, FALSE);
- MySetDlgItemFlt (hwnd, IDC_BELLOVLT, cfg.bellovl_t / 1000.0);
- MySetDlgItemFlt (hwnd, IDC_BELLOVLS, cfg.bellovl_s / 1000.0);
-
- CheckDlgButton (hwnd, IDC_BCE, cfg.bce);
- CheckDlgButton (hwnd, IDC_BLINKTEXT, cfg.blinktext);
-
- SetDlgItemText (hwnd, IDC_WINEDIT, cfg.wintitle);
- CheckDlgButton (hwnd, IDC_WINNAME, cfg.win_name_always);
- CheckDlgButton (hwnd, IDC_HIDEMOUSE, cfg.hide_mouseptr);
- CheckDlgButton (hwnd, IDC_SUNKENEDGE, cfg.sunken_edge);
- CheckRadioButton (hwnd, IDC_CURBLOCK, IDC_CURVERT,
- cfg.cursor_type==0 ? IDC_CURBLOCK :
- cfg.cursor_type==1 ? IDC_CURUNDER : IDC_CURVERT);
- CheckDlgButton (hwnd, IDC_BLINKCUR, cfg.blink_cur);
- CheckDlgButton (hwnd, IDC_SCROLLBAR, cfg.scrollbar);
- CheckDlgButton (hwnd, IDC_LOCKSIZE, cfg.locksize);
- CheckRadioButton (hwnd, IDC_COEALWAYS, IDC_COENORMAL,
- cfg.close_on_exit==COE_NORMAL ? IDC_COENORMAL :
- cfg.close_on_exit==COE_NEVER ? IDC_COENEVER : IDC_COEALWAYS);
- CheckDlgButton (hwnd, IDC_CLOSEWARN, cfg.warn_on_close);
-
- SetDlgItemText (hwnd, IDC_TTEDIT, cfg.termtype);
- SetDlgItemText (hwnd, IDC_TSEDIT, cfg.termspeed);
- SetDlgItemText (hwnd, IDC_R_TSEDIT, cfg.termspeed);
- SetDlgItemText (hwnd, IDC_RLLUSEREDIT, cfg.localusername);
- SetDlgItemText (hwnd, IDC_LOGEDIT, cfg.username);
- SetDlgItemText (hwnd, IDC_LGFEDIT, cfg.logfilename);
- CheckRadioButton(hwnd, IDC_LSTATOFF, IDC_LSTATRAW,
- cfg.logtype == 0 ? IDC_LSTATOFF :
- cfg.logtype == 1 ? IDC_LSTATASCII :
- IDC_LSTATRAW);
+ SetDlgItemInt(hwnd, IDC_PORT, cfg.port, FALSE);
+ CheckRadioButton(hwnd, IDC_PROTRAW, IDC_PROTSSH,
+ cfg.protocol == PROT_SSH ? IDC_PROTSSH :
+ cfg.protocol == PROT_TELNET ? IDC_PROTTELNET :
+ cfg.protocol ==
+ PROT_RLOGIN ? IDC_PROTRLOGIN : IDC_PROTRAW);
+ SetDlgItemInt(hwnd, IDC_PINGEDIT, cfg.ping_interval, FALSE);
+ CheckDlgButton(hwnd, IDC_NODELAY, cfg.tcp_nodelay);
+
+ CheckRadioButton(hwnd, IDC_DEL008, IDC_DEL127,
+ cfg.bksp_is_delete ? IDC_DEL127 : IDC_DEL008);
+ CheckRadioButton(hwnd, IDC_HOMETILDE, IDC_HOMERXVT,
+ cfg.rxvt_homeend ? IDC_HOMERXVT : IDC_HOMETILDE);
+ CheckRadioButton(hwnd, IDC_FUNCTILDE, IDC_FUNCSCO,
+ cfg.funky_type == 0 ? IDC_FUNCTILDE :
+ cfg.funky_type == 1 ? IDC_FUNCLINUX :
+ cfg.funky_type == 2 ? IDC_FUNCXTERM :
+ cfg.funky_type == 3 ? IDC_FUNCVT400 :
+ cfg.funky_type == 4 ? IDC_FUNCVT100P :
+ cfg.funky_type == 5 ? IDC_FUNCSCO : IDC_FUNCTILDE);
+ CheckDlgButton(hwnd, IDC_NOAPPLICC, cfg.no_applic_c);
+ CheckDlgButton(hwnd, IDC_NOAPPLICK, cfg.no_applic_k);
+ CheckDlgButton(hwnd, IDC_NOMOUSEREP, cfg.no_mouse_rep);
+ CheckDlgButton(hwnd, IDC_NORESIZE, cfg.no_remote_resize);
+ CheckDlgButton(hwnd, IDC_NOALTSCREEN, cfg.no_alt_screen);
+ CheckDlgButton(hwnd, IDC_NOWINTITLE, cfg.no_remote_wintitle);
+ CheckDlgButton(hwnd, IDC_NODBACKSPACE, cfg.no_dbackspace);
+ CheckDlgButton(hwnd, IDC_NOCHARSET, cfg.no_remote_charset);
+ CheckRadioButton(hwnd, IDC_CURNORMAL, IDC_CURAPPLIC,
+ cfg.app_cursor ? IDC_CURAPPLIC : IDC_CURNORMAL);
+ CheckRadioButton(hwnd, IDC_KPNORMAL, IDC_KPNH,
+ cfg.nethack_keypad ? IDC_KPNH :
+ cfg.app_keypad ? IDC_KPAPPLIC : IDC_KPNORMAL);
+ CheckDlgButton(hwnd, IDC_ALTF4, cfg.alt_f4);
+ CheckDlgButton(hwnd, IDC_ALTSPACE, cfg.alt_space);
+ CheckDlgButton(hwnd, IDC_ALTONLY, cfg.alt_only);
+ CheckDlgButton(hwnd, IDC_COMPOSEKEY, cfg.compose_key);
+ CheckDlgButton(hwnd, IDC_CTRLALTKEYS, cfg.ctrlaltkeys);
+ CheckDlgButton(hwnd, IDC_TELNETKEY, cfg.telnet_keyboard);
+ CheckDlgButton(hwnd, IDC_TELNETRET, cfg.telnet_newline);
+ CheckRadioButton(hwnd, IDC_ECHOBACKEND, IDC_ECHONO,
+ cfg.localecho == LD_BACKEND ? IDC_ECHOBACKEND :
+ cfg.localecho == LD_YES ? IDC_ECHOYES : IDC_ECHONO);
+ CheckRadioButton(hwnd, IDC_EDITBACKEND, IDC_EDITNO,
+ cfg.localedit == LD_BACKEND ? IDC_EDITBACKEND :
+ cfg.localedit == LD_YES ? IDC_EDITYES : IDC_EDITNO);
+ SetDlgItemText(hwnd, IDC_ANSWEREDIT, cfg.answerback);
+ CheckDlgButton(hwnd, IDC_ALWAYSONTOP, cfg.alwaysontop);
+ CheckDlgButton(hwnd, IDC_FULLSCREENONALTENTER, cfg.fullscreenonaltenter);
+ CheckDlgButton(hwnd, IDC_SCROLLKEY, cfg.scroll_on_key);
+ CheckDlgButton(hwnd, IDC_SCROLLDISP, cfg.scroll_on_disp);
+
+ CheckDlgButton(hwnd, IDC_WRAPMODE, cfg.wrap_mode);
+ CheckDlgButton(hwnd, IDC_DECOM, cfg.dec_om);
+ CheckDlgButton(hwnd, IDC_LFHASCR, cfg.lfhascr);
+ SetDlgItemInt(hwnd, IDC_ROWSEDIT, cfg.height, FALSE);
+ SetDlgItemInt(hwnd, IDC_COLSEDIT, cfg.width, FALSE);
+ SetDlgItemInt(hwnd, IDC_SAVEEDIT, cfg.savelines, FALSE);
+ fmtfont(fontstatic);
+ SetDlgItemText(hwnd, IDC_FONTSTATIC, fontstatic);
+ CheckRadioButton(hwnd, IDC_BELL_DISABLED, IDC_BELL_VISUAL,
+ cfg.beep == BELL_DISABLED ? IDC_BELL_DISABLED :
+ cfg.beep == BELL_DEFAULT ? IDC_BELL_DEFAULT :
+ cfg.beep == BELL_WAVEFILE ? IDC_BELL_WAVEFILE :
+ cfg.beep ==
+ BELL_VISUAL ? IDC_BELL_VISUAL : IDC_BELL_DEFAULT);
+ CheckRadioButton(hwnd, IDC_B_IND_DISABLED, IDC_B_IND_STEADY,
+ cfg.beep_ind ==
+ B_IND_DISABLED ? IDC_B_IND_DISABLED : cfg.beep_ind ==
+ B_IND_FLASH ? IDC_B_IND_FLASH : cfg.beep_ind ==
+ B_IND_STEADY ? IDC_B_IND_STEADY : IDC_B_IND_DISABLED);
+ SetDlgItemText(hwnd, IDC_BELL_WAVEEDIT, cfg.bell_wavefile);
+ CheckDlgButton(hwnd, IDC_BELLOVL, cfg.bellovl);
+ SetDlgItemInt(hwnd, IDC_BELLOVLN, cfg.bellovl_n, FALSE);
+ MySetDlgItemFlt(hwnd, IDC_BELLOVLT, cfg.bellovl_t / 1000.0);
+ MySetDlgItemFlt(hwnd, IDC_BELLOVLS, cfg.bellovl_s / 1000.0);
+
+ CheckDlgButton(hwnd, IDC_BCE, cfg.bce);
+ CheckDlgButton(hwnd, IDC_BLINKTEXT, cfg.blinktext);
+
+ SetDlgItemText(hwnd, IDC_WINEDIT, cfg.wintitle);
+ CheckDlgButton(hwnd, IDC_WINNAME, cfg.win_name_always);
+ CheckDlgButton(hwnd, IDC_HIDEMOUSE, cfg.hide_mouseptr);
+ CheckDlgButton(hwnd, IDC_SUNKENEDGE, cfg.sunken_edge);
+ SetDlgItemInt(hwnd, IDC_WINBEDIT, cfg.window_border, FALSE);
+ CheckRadioButton(hwnd, IDC_CURBLOCK, IDC_CURVERT,
+ cfg.cursor_type == 0 ? IDC_CURBLOCK :
+ cfg.cursor_type == 1 ? IDC_CURUNDER : IDC_CURVERT);
+ CheckDlgButton(hwnd, IDC_BLINKCUR, cfg.blink_cur);
+ CheckDlgButton(hwnd, IDC_SCROLLBAR, cfg.scrollbar);
+ CheckDlgButton(hwnd, IDC_SCROLLBARFULLSCREEN, cfg.scrollbar_in_fullscreen);
+ CheckRadioButton(hwnd, IDC_RESIZETERM, IDC_RESIZEEITHER,
+ cfg.resize_action == RESIZE_TERM ? IDC_RESIZETERM :
+ cfg.resize_action == RESIZE_FONT ? IDC_RESIZEFONT :
+ cfg.resize_action == RESIZE_EITHER ? IDC_RESIZEEITHER :
+ IDC_RESIZENONE);
+ CheckRadioButton(hwnd, IDC_COEALWAYS, IDC_COENORMAL,
+ cfg.close_on_exit == COE_NORMAL ? IDC_COENORMAL :
+ cfg.close_on_exit ==
+ COE_NEVER ? IDC_COENEVER : IDC_COEALWAYS);
+ CheckDlgButton(hwnd, IDC_CLOSEWARN, cfg.warn_on_close);
+
+ SetDlgItemText(hwnd, IDC_TTEDIT, cfg.termtype);
+ SetDlgItemText(hwnd, IDC_TSEDIT, cfg.termspeed);
+ SetDlgItemText(hwnd, IDC_R_TSEDIT, cfg.termspeed);
+ SetDlgItemText(hwnd, IDC_RLLUSEREDIT, cfg.localusername);
+ SetDlgItemText(hwnd, IDC_LOGEDIT, cfg.username);
+ SetDlgItemText(hwnd, IDC_LGFEDIT, cfg.logfilename);
+ CheckRadioButton(hwnd, IDC_LSTATOFF, IDC_LSTATPACKET,
+ cfg.logtype == LGTYP_NONE ? IDC_LSTATOFF :
+ cfg.logtype == LGTYP_ASCII ? IDC_LSTATASCII :
+ cfg.logtype == LGTYP_DEBUG ? IDC_LSTATRAW :
+ IDC_LSTATPACKET);