… | |
… | |
38 | #include <limits> |
38 | #include <limits> |
39 | |
39 | |
40 | #include <csignal> |
40 | #include <csignal> |
41 | #include <cstring> |
41 | #include <cstring> |
42 | |
42 | |
43 | # include <termios.h> |
43 | #include <termios.h> |
44 | |
44 | |
45 | #ifdef HAVE_XSETLOCALE |
45 | #ifdef HAVE_XSETLOCALE |
46 | # define X_LOCALE |
46 | # define X_LOCALE |
47 | # include <X11/Xlocale.h> |
47 | # include <X11/Xlocale.h> |
48 | #else |
48 | #else |
… | |
… | |
155 | { |
155 | { |
156 | #if HAVE_BG_PIXMAP |
156 | #if HAVE_BG_PIXMAP |
157 | update_background_ev.set<rxvt_term, &rxvt_term::update_background_cb> (this); |
157 | update_background_ev.set<rxvt_term, &rxvt_term::update_background_cb> (this); |
158 | #endif |
158 | #endif |
159 | #ifdef CURSOR_BLINK |
159 | #ifdef CURSOR_BLINK |
160 | cursor_blink_ev.set <rxvt_term, &rxvt_term::cursor_blink_cb> (this); |
160 | cursor_blink_ev.set <rxvt_term, &rxvt_term::cursor_blink_cb> (this); cursor_blink_ev.set (0., CURSOR_BLINK_INTERVAL); |
161 | #endif |
161 | #endif |
162 | #ifdef TEXT_BLINK |
162 | #ifdef TEXT_BLINK |
163 | text_blink_ev.set <rxvt_term, &rxvt_term::text_blink_cb> (this); text_blink_ev.set (0., TEXT_BLINK_INTERVAL); |
163 | text_blink_ev.set <rxvt_term, &rxvt_term::text_blink_cb> (this); text_blink_ev.set (0., TEXT_BLINK_INTERVAL); |
164 | #endif |
164 | #endif |
165 | #ifndef NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING |
165 | #ifndef NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING |
… | |
… | |
186 | #ifndef NO_BELL |
186 | #ifndef NO_BELL |
187 | bell_ev.set <rxvt_term, &rxvt_term::bell_cb> (this); |
187 | bell_ev.set <rxvt_term, &rxvt_term::bell_cb> (this); |
188 | #endif |
188 | #endif |
189 | child_ev.set <rxvt_term, &rxvt_term::child_cb> (this); |
189 | child_ev.set <rxvt_term, &rxvt_term::child_cb> (this); |
190 | prepare_ev.set <rxvt_term, &rxvt_term::prepare_cb> (this); |
190 | prepare_ev.set <rxvt_term, &rxvt_term::prepare_cb> (this); |
191 | flush_ev.set <rxvt_term, &rxvt_term::flush_cb> (this); flush_ev.set (0., 1. / 60.); // refresh at max. 60 Hz normally |
191 | flush_ev.set <rxvt_term, &rxvt_term::flush_cb> (this); |
192 | destroy_ev.set <rxvt_term, &rxvt_term::destroy_cb> (this); |
192 | destroy_ev.set <rxvt_term, &rxvt_term::destroy_cb> (this); |
193 | pty_ev.set <rxvt_term, &rxvt_term::pty_cb> (this); |
193 | pty_ev.set <rxvt_term, &rxvt_term::pty_cb> (this); |
194 | incr_ev.set <rxvt_term, &rxvt_term::incr_cb> (this); |
194 | incr_ev.set <rxvt_term, &rxvt_term::incr_cb> (this); |
195 | termwin_ev.set <rxvt_term, &rxvt_term::x_cb> (this); |
195 | termwin_ev.set <rxvt_term, &rxvt_term::x_cb> (this); |
196 | vt_ev.set <rxvt_term, &rxvt_term::x_cb> (this); |
196 | vt_ev.set <rxvt_term, &rxvt_term::x_cb> (this); |