1 | /*----------------------------------------------------------------------* |
1 | /*----------------------------------------------------------------------* |
2 | * File: rxvtperl.xs |
2 | * File: rxvtperl.xs |
3 | *----------------------------------------------------------------------* |
3 | *----------------------------------------------------------------------* |
4 | * |
4 | * |
5 | * All portions of code are copyright by their respective author/s. |
5 | * All portions of code are copyright by their respective author/s. |
6 | * Copyright (c) 2005-2014,2011 Marc Lehmann <schmorp@schmorp.de> |
6 | * Copyright (c) 2005-2014 Marc Lehmann <schmorp@schmorp.de> |
7 | * |
7 | * |
8 | * This program is free software; you can redistribute it and/or modify |
8 | * This program is free software; you can redistribute it and/or modify |
9 | * it under the terms of the GNU General Public License as published by |
9 | * it under the terms of the GNU General Public License as published by |
10 | * the Free Software Foundation; either version 3 of the License, or |
10 | * the Free Software Foundation; either version 3 of the License, or |
11 | * (at your option) any later version. |
11 | * (at your option) any later version. |
… | |
… | |
1574 | CODE: |
1574 | CODE: |
1575 | THIS->want_refresh = 1; |
1575 | THIS->want_refresh = 1; |
1576 | THIS->refresh_check (); |
1576 | THIS->refresh_check (); |
1577 | |
1577 | |
1578 | void |
1578 | void |
|
|
1579 | rxvt_term::refresh_check () |
|
|
1580 | |
|
|
1581 | void |
1579 | rxvt_term::ROW_t (int row_number, SV *new_text = 0, int start_col = 0, int start_ofs = 0, int max_len = MAX_COLS) |
1582 | rxvt_term::ROW_t (int row_number, SV *new_text = 0, int start_col = 0, int start_ofs = 0, int max_len = MAX_COLS) |
1580 | PPCODE: |
1583 | PPCODE: |
1581 | { |
1584 | { |
1582 | if (!IN_RANGE_EXC (row_number, THIS->top_row, THIS->nrow)) |
1585 | if (!IN_RANGE_EXC (row_number, THIS->top_row, THIS->nrow)) |
1583 | XSRETURN_EMPTY; |
1586 | XSRETURN_EMPTY; |
… | |
… | |
1859 | } |
1862 | } |
1860 | } |
1863 | } |
1861 | OUTPUT: |
1864 | OUTPUT: |
1862 | RETVAL |
1865 | RETVAL |
1863 | |
1866 | |
|
|
1867 | SV * |
|
|
1868 | rxvt_term::lookup_keysym (int keysym, unsigned int state) |
|
|
1869 | CODE: |
|
|
1870 | { |
|
|
1871 | keysym_t *key = THIS->keyboard->lookup_keysym (THIS, keysym, state); |
|
|
1872 | RETVAL = key ? sv_2mortal (newSVpv (key->str, 0)) : &PL_sv_undef; |
|
|
1873 | } |
|
|
1874 | OUTPUT: |
|
|
1875 | RETVAL |
|
|
1876 | |
1864 | bool |
1877 | bool |
1865 | rxvt_term::bind_action (octet_string keysym, octet_string action) |
1878 | rxvt_term::bind_action (octet_string keysym, octet_string action) |
1866 | ALIAS: |
1879 | ALIAS: |
1867 | parse_keysym = 1 |
1880 | parse_keysym = 1 |
1868 | CODE: |
1881 | CODE: |