… | |
… | |
399 | #if defined (HOTKEY_CTRL) || defined (HOTKEY_META) |
399 | #if defined (HOTKEY_CTRL) || defined (HOTKEY_META) |
400 | ks_bigfont = XK_greater; |
400 | ks_bigfont = XK_greater; |
401 | ks_smallfont = XK_less; |
401 | ks_smallfont = XK_less; |
402 | #endif |
402 | #endif |
403 | |
403 | |
404 | #ifdef GREEK_SUPPORT |
|
|
405 | ks_greekmodeswith = GREEK_KEYBOARD_MODESWITCH; |
|
|
406 | #endif |
|
|
407 | |
|
|
408 | refresh_limit = 1; |
404 | refresh_limit = 1; |
409 | refresh_type = SLOW_REFRESH; |
405 | refresh_type = SLOW_REFRESH; |
410 | prev_nrow = prev_ncol = 0; |
406 | prev_nrow = prev_ncol = 0; |
411 | #ifdef MULTICHAR_SET |
407 | #ifdef MULTICHAR_SET |
412 | # ifdef MULTICHAR_ENCODING |
408 | # ifdef MULTICHAR_ENCODING |
… | |
… | |
667 | |
663 | |
668 | #ifdef HAVE_SCROLLBARS |
664 | #ifdef HAVE_SCROLLBARS |
669 | setup_scrollbar (rs[Rs_scrollBar_align], rs[Rs_scrollstyle], |
665 | setup_scrollbar (rs[Rs_scrollBar_align], rs[Rs_scrollstyle], |
670 | rs[Rs_scrollBar_thickness]); |
666 | rs[Rs_scrollBar_thickness]); |
671 | #endif |
667 | #endif |
672 | |
|
|
673 | TermWin.fontset = new rxvt_fontset (this); |
|
|
674 | TermWin.fontset->populate (rs[Rs_font]); |
|
|
675 | TermWin.fwidth = TermWin.fontset->base_font ()->width; |
|
|
676 | TermWin.fheight = TermWin.fontset->base_font ()->height; |
|
|
677 | TermWin.fbase = TermWin.fontset->base_font ()->ascent; |
|
|
678 | |
668 | |
679 | #ifdef XTERM_REVERSE_VIDEO |
669 | #ifdef XTERM_REVERSE_VIDEO |
680 | /* this is how xterm implements reverseVideo */ |
670 | /* this is how xterm implements reverseVideo */ |
681 | if (Options & Opt_reverseVideo) |
671 | if (Options & Opt_reverseVideo) |
682 | { |
672 | { |
… | |
… | |
900 | if (menubar_visible ()) |
890 | if (menubar_visible ()) |
901 | { |
891 | { |
902 | PrivateModes |= PrivMode_menuBar; |
892 | PrivateModes |= PrivMode_menuBar; |
903 | SavedModes |= PrivMode_menuBar; |
893 | SavedModes |= PrivMode_menuBar; |
904 | } |
894 | } |
905 | |
|
|
906 | #ifdef GREEK_SUPPORT |
|
|
907 | greek_init (); |
|
|
908 | #endif |
|
|
909 | |
895 | |
910 | #ifdef CURSOR_BLINK |
896 | #ifdef CURSOR_BLINK |
911 | if (Options & Opt_cursorBlink) |
897 | if (Options & Opt_cursorBlink) |
912 | (void)gettimeofday (&lastcursorchange, NULL); |
898 | (void)gettimeofday (&lastcursorchange, NULL); |
913 | #endif |
899 | #endif |
… | |
… | |
1145 | } |
1131 | } |
1146 | |
1132 | |
1147 | /* grab colors before netscape does */ |
1133 | /* grab colors before netscape does */ |
1148 | Get_Colours (); |
1134 | Get_Colours (); |
1149 | |
1135 | |
1150 | change_font (1, NULL); |
1136 | if (!change_font (rs[Rs_font])) |
|
|
1137 | { |
|
|
1138 | fprintf (stderr, "unable to load a base font, please provide one using -fn fontname\n"); |
|
|
1139 | destroy (); |
|
|
1140 | return; |
|
|
1141 | } |
|
|
1142 | |
1151 | window_calc (0, 0); |
1143 | window_calc (0, 0); |
1152 | old_width = szHint.width; |
1144 | old_width = szHint.width; |
1153 | old_height = szHint.height; |
1145 | old_height = szHint.height; |
1154 | |
1146 | |
1155 | /* parent window - reverse video so we can see placement errors |
1147 | /* parent window - reverse video so we can see placement errors |