… | |
… | |
821 | } *civ, const_iv[] = { |
821 | } *civ, const_iv[] = { |
822 | # define const_iv(name) { # name, (IV)name } |
822 | # define const_iv(name) { # name, (IV)name } |
823 | const_iv (HOOK_INIT), |
823 | const_iv (HOOK_INIT), |
824 | const_iv (HOOK_DESTROY), |
824 | const_iv (HOOK_DESTROY), |
825 | const_iv (HOOK_ACTION), |
825 | const_iv (HOOK_ACTION), |
|
|
826 | const_iv (HOOK_OSC_SEQ), |
|
|
827 | const_iv (HOOK_OSC_SEQ_PERL), |
826 | |
828 | |
827 | const_iv (NUM_RESOURCES), |
829 | const_iv (NUM_RESOURCES), |
828 | const_iv (DEFAULT_RSTYLE), |
830 | const_iv (DEFAULT_RSTYLE), |
829 | const_iv (OVERLAY_RSTYLE), |
831 | const_iv (OVERLAY_RSTYLE), |
830 | const_iv (Color_Bits), |
832 | const_iv (Color_Bits), |
… | |
… | |
1562 | THIS->rstyle = new_rstyle; |
1564 | THIS->rstyle = new_rstyle; |
1563 | OUTPUT: |
1565 | OUTPUT: |
1564 | RETVAL |
1566 | RETVAL |
1565 | |
1567 | |
1566 | int |
1568 | int |
1567 | rxvt_term::view_start (int newval = 1) |
1569 | rxvt_term::view_start (int newval = 0) |
1568 | PROTOTYPE: $;$ |
1570 | PROTOTYPE: $;$ |
1569 | CODE: |
1571 | CODE: |
1570 | { |
1572 | { |
1571 | RETVAL = THIS->view_start; |
1573 | RETVAL = THIS->view_start; |
1572 | |
1574 | if (items > 1) |
1573 | if (newval <= 0) |
|
|
1574 | THIS->scr_changeview (max (newval, THIS->top_row)); |
1575 | THIS->scr_changeview (newval); |
1575 | } |
1576 | } |
1576 | OUTPUT: |
1577 | OUTPUT: |
1577 | RETVAL |
1578 | RETVAL |
1578 | |
1579 | |
1579 | void |
1580 | void |
… | |
… | |
1789 | // find length |
1790 | // find length |
1790 | for (wchar_t *s = wstr; *s; s++) |
1791 | for (wchar_t *s = wstr; *s; s++) |
1791 | if (*s == NOCHAR) |
1792 | if (*s == NOCHAR) |
1792 | ; |
1793 | ; |
1793 | else if (IS_COMPOSE (*s)) |
1794 | else if (IS_COMPOSE (*s)) |
1794 | dlen += rxvt_composite.expand (*s, 0); |
1795 | dlen += rxvt_composite.expand (*s); |
1795 | else |
1796 | else |
1796 | dlen++; |
1797 | dlen++; |
1797 | |
1798 | |
1798 | wchar_t *rstr = rxvt_temp_buf<wchar_t> (dlen); |
1799 | wchar_t *rstr = rxvt_temp_buf<wchar_t> (dlen); |
1799 | |
1800 | |