… | |
… | |
1215 | // modifies first argument(!) |
1215 | // modifies first argument(!) |
1216 | void paste (char *data, unsigned int len); |
1216 | void paste (char *data, unsigned int len); |
1217 | |
1217 | |
1218 | long vt_emask, vt_emask_perl; |
1218 | long vt_emask, vt_emask_perl; |
1219 | |
1219 | |
1220 | void vt_select_input () |
1220 | void vt_select_input () const |
1221 | { |
1221 | { |
1222 | XSelectInput (display->display, vt, vt_emask | vt_emask_perl); |
1222 | XSelectInput (display->display, vt, vt_emask | vt_emask_perl); |
1223 | } |
1223 | } |
1224 | |
1224 | |
1225 | #if TRANSPARENT |
1225 | #if TRANSPARENT |
… | |
… | |
1283 | |
1283 | |
1284 | bool init (int argc, const char *const *argv); |
1284 | bool init (int argc, const char *const *argv); |
1285 | bool init_vars (); |
1285 | bool init_vars (); |
1286 | |
1286 | |
1287 | bool pty_fill (); |
1287 | bool pty_fill (); |
|
|
1288 | |
|
|
1289 | void make_current () const; // make this the "currently active" urxvt instance |
1288 | |
1290 | |
1289 | void init_secondary (); |
1291 | void init_secondary (); |
1290 | const char **init_resources (int argc, const char *const *argv); |
1292 | const char **init_resources (int argc, const char *const *argv); |
1291 | const char *x_resource (const char *name); |
1293 | const char *x_resource (const char *name); |
1292 | void init_env (); |
1294 | void init_env (); |
… | |
… | |
1417 | void map_menuBar (int map); |
1419 | void map_menuBar (int map); |
1418 | #endif |
1420 | #endif |
1419 | |
1421 | |
1420 | // screen.C |
1422 | // screen.C |
1421 | |
1423 | |
1422 | void lalloc (line_t &l) |
1424 | void lalloc (line_t &l) const |
1423 | { |
1425 | { |
1424 | l.t = (text_t *)talloc->alloc (); |
1426 | l.t = (text_t *)talloc->alloc (); |
1425 | l.r = (rend_t *)ralloc->alloc (); |
1427 | l.r = (rend_t *)ralloc->alloc (); |
1426 | } |
1428 | } |
1427 | |
1429 | |
… | |
… | |
1431 | talloc->free (l.t); |
1433 | talloc->free (l.t); |
1432 | ralloc->free (l.r); |
1434 | ralloc->free (l.r); |
1433 | } |
1435 | } |
1434 | #endif |
1436 | #endif |
1435 | |
1437 | |
1436 | void lresize (line_t &l) |
1438 | void lresize (line_t &l) const |
1437 | { |
1439 | { |
1438 | if (!l.t) |
1440 | if (!l.t) |
1439 | return; |
1441 | return; |
1440 | |
1442 | |
1441 | l.t = (text_t *)talloc->alloc (l.t, prev_ncol * sizeof (text_t)); |
1443 | l.t = (text_t *)talloc->alloc (l.t, prev_ncol * sizeof (text_t)); |
… | |
… | |
1445 | |
1447 | |
1446 | if (ncol > prev_ncol) |
1448 | if (ncol > prev_ncol) |
1447 | scr_blank_line (l, prev_ncol, ncol - prev_ncol, DEFAULT_RSTYLE); |
1449 | scr_blank_line (l, prev_ncol, ncol - prev_ncol, DEFAULT_RSTYLE); |
1448 | } |
1450 | } |
1449 | |
1451 | |
1450 | int fgcolor_of (rend_t r) |
1452 | int fgcolor_of (rend_t r) const |
1451 | { |
1453 | { |
1452 | int base = GET_BASEFG (r); |
1454 | int base = GET_BASEFG (r); |
1453 | #ifndef NO_BRIGHTCOLOR |
1455 | #ifndef NO_BRIGHTCOLOR |
1454 | if (r & RS_Bold |
1456 | if (r & RS_Bold |
1455 | # if ENABLE_STYLES |
1457 | # if ENABLE_STYLES |
… | |
… | |
1459 | base += minBrightCOLOR - minCOLOR; |
1461 | base += minBrightCOLOR - minCOLOR; |
1460 | #endif |
1462 | #endif |
1461 | return base; |
1463 | return base; |
1462 | } |
1464 | } |
1463 | |
1465 | |
1464 | int bgcolor_of (rend_t r) |
1466 | int bgcolor_of (rend_t r) const |
1465 | { |
1467 | { |
1466 | int base = GET_BASEBG (r); |
1468 | int base = GET_BASEBG (r); |
1467 | #ifndef NO_BRIGHTCOLOR |
1469 | #ifndef NO_BRIGHTCOLOR |
1468 | if (r & RS_Blink |
1470 | if (r & RS_Blink |
1469 | # if ENABLE_STYLES |
1471 | # if ENABLE_STYLES |
… | |
… | |
1473 | base += minBrightCOLOR - minCOLOR; |
1475 | base += minBrightCOLOR - minCOLOR; |
1474 | #endif |
1476 | #endif |
1475 | return base; |
1477 | return base; |
1476 | } |
1478 | } |
1477 | |
1479 | |
1478 | bool option (uint32_t opt) |
1480 | bool option (uint32_t opt) const |
1479 | { |
1481 | { |
1480 | return OPTION (opt); |
1482 | return OPTION (opt); |
1481 | } |
1483 | } |
1482 | |
1484 | |
1483 | void set_option (uint32_t opt, bool set) |
1485 | void set_option (uint32_t opt, bool set) |
… | |
… | |
1486 | options |= opt; |
1488 | options |= opt; |
1487 | else |
1489 | else |
1488 | options &= ~opt; |
1490 | options &= ~opt; |
1489 | } |
1491 | } |
1490 | |
1492 | |
1491 | void scr_blank_line (line_t &l, unsigned int col, unsigned int width, rend_t efs); |
1493 | void scr_blank_line (line_t &l, unsigned int col, unsigned int width, rend_t efs) const; |
1492 | void scr_blank_screen_mem (line_t &l, rend_t efs); |
1494 | void scr_blank_screen_mem (line_t &l, rend_t efs) const; |
1493 | int scr_scroll_text (int row1, int row2, int count); |
1495 | int scr_scroll_text (int row1, int row2, int count); |
1494 | void scr_reset (); |
1496 | void scr_reset (); |
1495 | void scr_release (); |
1497 | void scr_release (); |
1496 | void scr_clear (bool really = false); |
1498 | void scr_clear (bool really = false); |
1497 | void scr_refresh (unsigned char refresh_type); |
1499 | void scr_refresh (unsigned char refresh_type); |