… | |
… | |
50 | #undef LINENO |
50 | #undef LINENO |
51 | #define LINENO(n) MOD (THIS->term_start + int(n), THIS->total_rows) |
51 | #define LINENO(n) MOD (THIS->term_start + int(n), THIS->total_rows) |
52 | #undef ROW |
52 | #undef ROW |
53 | #define ROW(n) THIS->row_buf [LINENO (n)] |
53 | #define ROW(n) THIS->row_buf [LINENO (n)] |
54 | |
54 | |
55 | typedef int CHAINED UNUSED; |
|
|
56 | |
|
|
57 | ///////////////////////////////////////////////////////////////////////////// |
55 | ///////////////////////////////////////////////////////////////////////////// |
58 | |
56 | |
59 | static wchar_t * |
57 | static wchar_t * |
60 | sv2wcs (SV *sv) |
58 | sv2wcs (SV *sv) |
61 | { |
59 | { |
… | |
… | |
304 | } |
302 | } |
305 | |
303 | |
306 | ///////////////////////////////////////////////////////////////////////////// |
304 | ///////////////////////////////////////////////////////////////////////////// |
307 | |
305 | |
308 | #define IOM_CLASS "urxvt" |
306 | #define IOM_CLASS "urxvt" |
|
|
307 | #define IOM_WARN rxvt_warn |
309 | #include <iom_perl.h> |
308 | #include <iom_perl.h> |
310 | |
309 | |
311 | ///////////////////////////////////////////////////////////////////////////// |
310 | ///////////////////////////////////////////////////////////////////////////// |
312 | |
311 | |
313 | struct rxvt_perl_interp rxvt_perl; |
312 | struct rxvt_perl_interp rxvt_perl; |
… | |
… | |
674 | const_iv (AnyModifier), |
673 | const_iv (AnyModifier), |
675 | |
674 | |
676 | const_iv (NoSymbol), |
675 | const_iv (NoSymbol), |
677 | const_iv (GrabModeSync), |
676 | const_iv (GrabModeSync), |
678 | const_iv (GrabModeAsync), |
677 | const_iv (GrabModeAsync), |
679 | |
|
|
680 | const_iv (EVENT_NONE), |
|
|
681 | const_iv (EVENT_READ), |
|
|
682 | const_iv (EVENT_WRITE), |
|
|
683 | |
678 | |
684 | const_iv (NoEventMask), |
679 | const_iv (NoEventMask), |
685 | const_iv (KeyPressMask), |
680 | const_iv (KeyPressMask), |
686 | const_iv (KeyReleaseMask), |
681 | const_iv (KeyReleaseMask), |
687 | const_iv (ButtonPressMask), |
682 | const_iv (ButtonPressMask), |
… | |
… | |
1479 | |
1474 | |
1480 | const char * |
1475 | const char * |
1481 | rxvt_term::x_resource (const char *name) |
1476 | rxvt_term::x_resource (const char *name) |
1482 | |
1477 | |
1483 | bool |
1478 | bool |
1484 | rxvt_term::option (U32 optval, int set = -1) |
1479 | rxvt_term::option (U8 optval, int set = -1) |
1485 | CODE: |
1480 | CODE: |
1486 | { |
1481 | { |
1487 | RETVAL = THIS->options & optval; |
1482 | RETVAL = THIS->option (optval); |
1488 | |
1483 | |
1489 | if (set >= 0) |
1484 | if (set >= 0) |
1490 | { |
1485 | { |
1491 | if (set) |
|
|
1492 | THIS->options |= optval; |
1486 | THIS->set_option (optval, set); |
1493 | else |
|
|
1494 | THIS->options &= ~optval; |
|
|
1495 | |
1487 | |
1496 | if (THIS->check_ev.is_active ()) // avoid doing this before START |
1488 | if (THIS->check_ev.is_active ()) // avoid doing this before START |
1497 | switch (optval) |
1489 | switch (optval) |
1498 | { |
1490 | { |
1499 | case Opt_skipBuiltinGlyphs: |
1491 | case Opt_skipBuiltinGlyphs: |