… | |
… | |
1204 | } |
1204 | } |
1205 | OUTPUT: |
1205 | OUTPUT: |
1206 | RETVAL |
1206 | RETVAL |
1207 | |
1207 | |
1208 | void |
1208 | void |
|
|
1209 | rxvt_term::focus_in () |
|
|
1210 | |
|
|
1211 | void |
|
|
1212 | rxvt_term::focus_out () |
|
|
1213 | |
|
|
1214 | void |
1209 | rxvt_term::want_refresh () |
1215 | rxvt_term::want_refresh () |
1210 | CODE: |
1216 | CODE: |
1211 | THIS->want_refresh = 1; |
1217 | THIS->want_refresh = 1; |
1212 | |
1218 | |
1213 | void |
1219 | void |
… | |
… | |
1235 | { |
1241 | { |
1236 | wchar_t *wstr = sv2wcs (new_text); |
1242 | wchar_t *wstr = sv2wcs (new_text); |
1237 | |
1243 | |
1238 | int len = min (wcslen (wstr) - start_ofs, max_len); |
1244 | int len = min (wcslen (wstr) - start_ofs, max_len); |
1239 | |
1245 | |
1240 | if (!IN_RANGE_INC (start_col, 0, THIS->ncol - len)) |
1246 | if (start_col < 0 || start_col + len > THIS->ncol) |
1241 | { |
1247 | { |
1242 | free (wstr); |
1248 | free (wstr); |
1243 | croak ("new_text extends beyond horizontal margins"); |
1249 | croak ("new_text extends beyond horizontal margins"); |
1244 | } |
1250 | } |
1245 | |
1251 | |
… | |
… | |
1279 | croak ("new_rend must be arrayref"); |
1285 | croak ("new_rend must be arrayref"); |
1280 | |
1286 | |
1281 | AV *av = (AV *)SvRV (new_rend); |
1287 | AV *av = (AV *)SvRV (new_rend); |
1282 | int len = min (AvFILL (av) + 1 - start_ofs, max_len); |
1288 | int len = min (AvFILL (av) + 1 - start_ofs, max_len); |
1283 | |
1289 | |
1284 | if (!IN_RANGE_INC (start_col, 0, THIS->ncol - len)) |
1290 | if (start_col < 0 || start_col + len > THIS->ncol) |
1285 | croak ("new_rend array extends beyond horizontal margins"); |
1291 | croak ("new_rend array extends beyond horizontal margins"); |
1286 | |
1292 | |
1287 | for (int col = start_col; col < start_col + len; col++) |
1293 | for (int col = start_col; col < start_col + len; col++) |
1288 | { |
1294 | { |
1289 | rend_t r = SvIV (*av_fetch (av, start_ofs + col - start_col, 1)) & ~RS_fontMask; |
1295 | rend_t r = SvIV (*av_fetch (av, start_ofs + col - start_col, 1)) & ~RS_fontMask; |