… | |
… | |
495 | } |
495 | } |
496 | |
496 | |
497 | static void |
497 | static void |
498 | _keysym_resource_push (rxvt_term *term, const char *k, const char *v) |
498 | _keysym_resource_push (rxvt_term *term, const char *k, const char *v) |
499 | { |
499 | { |
|
|
500 | unsigned int state; |
|
|
501 | |
|
|
502 | if (term->parse_keysym (k, state) == -1) |
|
|
503 | return; |
|
|
504 | |
500 | dSP; |
505 | dSP; |
501 | XPUSHs (sv_2mortal (newSVpv (v, 0))); |
506 | XPUSHs (sv_2mortal (newSVpv (v, 0))); |
502 | PUTBACK; |
507 | PUTBACK; |
503 | } |
508 | } |
504 | |
509 | |
… | |
… | |
1302 | OUTPUT: RETVAL |
1307 | OUTPUT: RETVAL |
1303 | |
1308 | |
1304 | int |
1309 | int |
1305 | rxvt_term::XKeycodeToKeysym (int code, int index) |
1310 | rxvt_term::XKeycodeToKeysym (int code, int index) |
1306 | CODE: |
1311 | CODE: |
1307 | RETVAL = XKeycodeToKeysym (THIS->dpy, code, index); |
1312 | RETVAL = rxvt_XKeycodeToKeysym (THIS->dpy, code, index); |
1308 | OUTPUT: RETVAL |
1313 | OUTPUT: RETVAL |
1309 | |
1314 | |
1310 | int |
1315 | int |
1311 | rxvt_term::strwidth (SV *str) |
1316 | rxvt_term::strwidth (SV *str) |
1312 | CODE: |
1317 | CODE: |
… | |
… | |
1837 | THIS->cursor_blink_reset (); |
1842 | THIS->cursor_blink_reset (); |
1838 | break; |
1843 | break; |
1839 | #endif |
1844 | #endif |
1840 | |
1845 | |
1841 | case Opt_cursorUnderline: |
1846 | case Opt_cursorUnderline: |
|
|
1847 | THIS->cursor_type = set ? 1 : 0; |
1842 | THIS->want_refresh = 1; |
1848 | THIS->want_refresh = 1; |
1843 | THIS->refresh_check (); |
1849 | THIS->refresh_check (); |
1844 | break; |
1850 | break; |
1845 | |
1851 | |
1846 | # case Opt_scrollBar_floating: |
1852 | # case Opt_scrollBar_floating: |
… | |
… | |
1860 | CODE: |
1866 | CODE: |
1861 | RETVAL = 0 < THIS->bind_action (keysym, str); |
1867 | RETVAL = 0 < THIS->bind_action (keysym, str); |
1862 | THIS->keyboard->register_done (); |
1868 | THIS->keyboard->register_done (); |
1863 | OUTPUT: |
1869 | OUTPUT: |
1864 | RETVAL |
1870 | RETVAL |
1865 | |
|
|
1866 | void |
|
|
1867 | rxvt_term::register_command (int keysym, unsigned int state, SV *str) |
|
|
1868 | CODE: |
|
|
1869 | wchar_t *wstr = sv2wcs (str); |
|
|
1870 | THIS->keyboard->register_action (keysym, state, wstr); |
|
|
1871 | free (wstr); |
|
|
1872 | |
1871 | |
1873 | void |
1872 | void |
1874 | rxvt_term::screen_cur (...) |
1873 | rxvt_term::screen_cur (...) |
1875 | PROTOTYPE: $;$$ |
1874 | PROTOTYPE: $;$$ |
1876 | ALIAS: |
1875 | ALIAS: |