… | |
… | |
1191 | { |
1191 | { |
1192 | make_current (); |
1192 | make_current (); |
1193 | |
1193 | |
1194 | if (revents & ev::READ) |
1194 | if (revents & ev::READ) |
1195 | // loop, but don't allow a single term to monopolize us |
1195 | // loop, but don't allow a single term to monopolize us |
1196 | while (pty_fill ()) |
1196 | for (int i = CBUFCNT; i-- && pty_fill (); ) |
1197 | if (cmd_parse ()) |
1197 | cmd_parse (); |
1198 | break; |
|
|
1199 | |
1198 | |
1200 | if (revents & ev::WRITE) |
1199 | if (revents & ev::WRITE) |
1201 | pty_write (); |
1200 | pty_write (); |
1202 | |
1201 | |
1203 | refresh_check (); |
1202 | refresh_check (); |
… | |
… | |
2185 | } |
2184 | } |
2186 | } |
2185 | } |
2187 | |
2186 | |
2188 | /*}}} */ |
2187 | /*}}} */ |
2189 | |
2188 | |
2190 | bool |
2189 | void |
2191 | rxvt_term::cmd_parse () |
2190 | rxvt_term::cmd_parse () |
2192 | { |
2191 | { |
2193 | bool flag = false; |
|
|
2194 | wchar_t ch = NOCHAR; |
2192 | wchar_t ch = NOCHAR; |
2195 | char *seq_begin; // remember start of esc-sequence here |
2193 | char *seq_begin; // remember start of esc-sequence here |
2196 | |
2194 | |
2197 | for (;;) |
2195 | for (;;) |
2198 | { |
2196 | { |
… | |
… | |
2292 | * What the heck we'll cheat and only refresh less than every page-full. |
2290 | * What the heck we'll cheat and only refresh less than every page-full. |
2293 | * if skipScroll is enabled. |
2291 | * if skipScroll is enabled. |
2294 | */ |
2292 | */ |
2295 | if (refreshnow) |
2293 | if (refreshnow) |
2296 | { |
2294 | { |
2297 | flag = true; |
|
|
2298 | scr_refresh (); |
2295 | scr_refresh (); |
2299 | want_refresh = 1; |
2296 | want_refresh = 1; |
2300 | } |
2297 | } |
2301 | |
|
|
2302 | } |
2298 | } |
2303 | else |
2299 | else |
2304 | { |
2300 | { |
2305 | try |
2301 | try |
2306 | { |
2302 | { |
… | |
… | |
2314 | } |
2310 | } |
2315 | |
2311 | |
2316 | ch = NOCHAR; |
2312 | ch = NOCHAR; |
2317 | } |
2313 | } |
2318 | } |
2314 | } |
2319 | |
|
|
2320 | return flag; |
|
|
2321 | } |
2315 | } |
2322 | |
2316 | |
2323 | // read the next character |
2317 | // read the next character |
2324 | wchar_t |
2318 | wchar_t |
2325 | rxvt_term::next_char () NOTHROW |
2319 | rxvt_term::next_char () NOTHROW |