… | |
… | |
1811 | * the top of the screen |
1811 | * the top of the screen |
1812 | */ |
1812 | */ |
1813 | void |
1813 | void |
1814 | rxvt_term::scr_move_to (int y, int len) |
1814 | rxvt_term::scr_move_to (int y, int len) |
1815 | { |
1815 | { |
1816 | int p = len |
|
|
1817 | ? (top_row - nrow) * (len - y) / len + (nrow - 1) |
1816 | scr_changeview ((top_row - nrow) * (len - y) / len + (nrow - 1)); |
1818 | : 0; |
|
|
1819 | |
|
|
1820 | scr_changeview (p); |
|
|
1821 | } |
1817 | } |
1822 | |
1818 | |
1823 | /* ------------------------------------------------------------------------- */ |
1819 | /* ------------------------------------------------------------------------- */ |
1824 | /* |
1820 | /* |
1825 | * Page the screen up/down nlines |
1821 | * Page the screen up/down nlines |