… | |
… | |
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: |
… | |
… | |
1863 | THIS->keyboard->register_done (); |
1868 | THIS->keyboard->register_done (); |
1864 | OUTPUT: |
1869 | OUTPUT: |
1865 | RETVAL |
1870 | RETVAL |
1866 | |
1871 | |
1867 | void |
1872 | void |
|
|
1873 | rxvt_term::register_command (int keysym, unsigned int state, SV *str) |
|
|
1874 | CODE: |
|
|
1875 | wchar_t *wstr = sv2wcs (str); |
|
|
1876 | THIS->keyboard->register_action (keysym, state, wstr); |
|
|
1877 | free (wstr); |
|
|
1878 | |
|
|
1879 | void |
1868 | rxvt_term::screen_cur (...) |
1880 | rxvt_term::screen_cur (...) |
1869 | PROTOTYPE: $;$$ |
1881 | PROTOTYPE: $;$$ |
1870 | ALIAS: |
1882 | ALIAS: |
1871 | screen_cur = 0 |
1883 | screen_cur = 0 |
1872 | selection_beg = 1 |
1884 | selection_beg = 1 |