… | |
… | |
198 | r & RS_Uline ? " uline" : "", |
198 | r & RS_Uline ? " uline" : "", |
199 | r & RS_Careful ? " careful" : ""); |
199 | r & RS_Careful ? " careful" : ""); |
200 | |
200 | |
201 | int width = wcswidth (fname, wcslen (fname)); |
201 | int width = wcswidth (fname, wcslen (fname)); |
202 | |
202 | |
203 | max_it (width, 8+5); // for char + hey |
203 | max_it (width, 8+5); // for char + hex |
204 | max_it (width, strlen (attr)); |
204 | max_it (width, strlen (attr)); |
205 | |
205 | |
206 | if (y >= 0) |
206 | if (y >= 0) |
207 | { |
207 | { |
208 | y = (y >= nrow - len - 4 && x < width + 2) ? 0 : -1; |
208 | y = (y >= nrow - len - 4 && x < width + 2) ? 0 : -1; |
… | |
… | |
1047 | void |
1047 | void |
1048 | rxvt_term::refresh_check () |
1048 | rxvt_term::refresh_check () |
1049 | { |
1049 | { |
1050 | if (want_refresh && !flush_ev.is_active ()) |
1050 | if (want_refresh && !flush_ev.is_active ()) |
1051 | flush_ev.start (1. / 60.); // refresh at max. 60 Hz normally |
1051 | flush_ev.start (1. / 60.); // refresh at max. 60 Hz normally |
|
|
1052 | |
|
|
1053 | display->flush (); |
1052 | } |
1054 | } |
1053 | |
1055 | |
1054 | void |
1056 | void |
1055 | rxvt_term::flush_cb (ev::timer &w, int revents) |
1057 | rxvt_term::flush_cb (ev::timer &w, int revents) |
1056 | { |
1058 | { |
… | |
… | |
1209 | if (cmd_parse ()) |
1211 | if (cmd_parse ()) |
1210 | break; |
1212 | break; |
1211 | |
1213 | |
1212 | if (revents & ev::WRITE) |
1214 | if (revents & ev::WRITE) |
1213 | pty_write (); |
1215 | pty_write (); |
|
|
1216 | |
|
|
1217 | refresh_check (); |
1214 | } |
1218 | } |
1215 | |
1219 | |
1216 | void |
1220 | void |
1217 | rxvt_term::pointer_unblank () |
1221 | rxvt_term::pointer_unblank () |
1218 | { |
1222 | { |
… | |
… | |
2308 | } |
2312 | } |
2309 | |
2313 | |
2310 | ch = NOCHAR; |
2314 | ch = NOCHAR; |
2311 | } |
2315 | } |
2312 | } |
2316 | } |
2313 | |
|
|
2314 | refresh_check (); |
|
|
2315 | |
2317 | |
2316 | return flag; |
2318 | return flag; |
2317 | } |
2319 | } |
2318 | |
2320 | |
2319 | // read the next character |
2321 | // read the next character |