- SetDlgItemText (hwnd, IDC0_HOST, cfg.host);
- SetDlgItemText (hwnd, IDC0_SESSEDIT, savedsession);
- SetDlgItemInt (hwnd, IDC0_PORT, cfg.port, FALSE);
- for (i = 0; i < nsessions; i++)
- SendDlgItemMessage (hwnd, IDC0_SESSLIST, LB_ADDSTRING,
- 0, (LPARAM) (sessions[i]));
- CheckRadioButton (hwnd, IDC0_PROTRAW, IDC0_PROTSSH,
- cfg.protocol==PROT_SSH ? IDC0_PROTSSH :
- cfg.protocol==PROT_TELNET ? IDC0_PROTTELNET : IDC0_PROTRAW );
- CheckDlgButton (hwnd, IDC0_CLOSEEXIT, cfg.close_on_exit);
- CheckDlgButton (hwnd, IDC0_CLOSEWARN, cfg.warn_on_close);
-
- CheckRadioButton (hwnd, IDC1_DEL008, IDC1_DEL127,
- cfg.bksp_is_delete ? IDC1_DEL127 : IDC1_DEL008);
- CheckRadioButton (hwnd, IDC1_HOMETILDE, IDC1_HOMERXVT,
- cfg.rxvt_homeend ? IDC1_HOMERXVT : IDC1_HOMETILDE);
- CheckRadioButton (hwnd, IDC1_FUNCTILDE, IDC1_FUNCXTERM,
- cfg.funky_type ?
- (cfg.funky_type==2 ? IDC1_FUNCXTERM
- : IDC1_FUNCLINUX )
- : IDC1_FUNCTILDE);
- CheckRadioButton (hwnd, IDC1_CURNORMAL, IDC1_CURAPPLIC,
- cfg.app_cursor ? IDC1_CURAPPLIC : IDC1_CURNORMAL);
- CheckRadioButton (hwnd, IDC1_KPNORMAL, IDC1_KPNH,
- cfg.nethack_keypad ? IDC1_KPNH :
- cfg.app_keypad ? IDC1_KPAPPLIC : IDC1_KPNORMAL);
- CheckDlgButton (hwnd, IDC1_ALTF4, cfg.alt_f4);
- CheckDlgButton (hwnd, IDC1_ALTSPACE, cfg.alt_space);
- CheckDlgButton (hwnd, IDC1_LDISCTERM, cfg.ldisc_term);
- CheckDlgButton (hwnd, IDC1_SCROLLKEY, cfg.scroll_on_key);
-
- CheckDlgButton (hwnd, IDC2_WRAPMODE, cfg.wrap_mode);
- CheckDlgButton (hwnd, IDC2_DECOM, cfg.dec_om);
- CheckDlgButton (hwnd, IDC2_LFHASCR, cfg.lfhascr);
- SetDlgItemInt (hwnd, IDC2_ROWSEDIT, cfg.height, FALSE);
- SetDlgItemInt (hwnd, IDC2_COLSEDIT, cfg.width, FALSE);
- SetDlgItemInt (hwnd, IDC2_SAVEEDIT, cfg.savelines, FALSE);
+ SetDlgItemText (hwnd, IDC_HOST, cfg.host);
+ SetDlgItemText (hwnd, IDC_SESSEDIT, savedsession);
+ 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 : 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_FUNCXTERM,
+ cfg.funky_type == 0 ? IDC_FUNCTILDE :
+ cfg.funky_type == 1 ? IDC_FUNCLINUX :
+ cfg.funky_type == 2 ? IDC_FUNCXTERM :
+ cfg.funky_type == 3 ? IDC_FUNCVT400 :
+ IDC_FUNCTILDE );
+ 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_LDISCTERM, cfg.ldisc_term);
+ CheckDlgButton (hwnd, IDC_SCROLLKEY, cfg.scroll_on_key);
+
+ 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);