| 771 |
clrtoeol(); |
clrtoeol(); |
| 772 |
for (i = 0; i < scroll_rows; i++) |
for (i = 0; i < scroll_rows; i++) |
| 773 |
{ |
{ |
| 774 |
prints("\033[S"); // Scroll up 1 line |
// prints("\033[S"); // Scroll up 1 line |
| 775 |
|
prints("\n"); // Legacy Cterm only works with this line |
| 776 |
} |
} |
| 777 |
|
|
| 778 |
output_current_row -= scroll_rows; |
output_current_row -= scroll_rows; |
| 1027 |
col_pos = MIN(col_pos, MAX(1, p_editor_data->display_line_lengths[line_current - output_current_row + row_pos])); |
col_pos = MIN(col_pos, MAX(1, p_editor_data->display_line_lengths[line_current - output_current_row + row_pos])); |
| 1028 |
moveto(SCREEN_ROWS, 0); |
moveto(SCREEN_ROWS, 0); |
| 1029 |
clrtoeol(); |
clrtoeol(); |
| 1030 |
prints("\033[S"); // Scroll up 1 line |
// prints("\033[S"); // Scroll up 1 line |
| 1031 |
|
prints("\n"); // Legacy Cterm only works with this line |
| 1032 |
break; |
break; |
| 1033 |
case KEY_PGUP: |
case KEY_PGUP: |
| 1034 |
if (line_current - output_current_row < 0) // Reach begin |
if (line_current - output_current_row < 0) // Reach begin |