mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
This is largely untested, but existing scrolling code has been converted to using a terminal-global scrolling region that is defined as start-end of the scrollable region. This is compared to the old code where the scrolling region where defined in terms of marginals, counted in lines from top and from bottom.
25 lines
865 B
C
25 lines
865 B
C
#pragma once
|
|
|
|
#include "terminal.h"
|
|
|
|
void grid_damage_update(struct grid *grid, int start, int length);
|
|
void grid_damage_erase(struct grid *grid, int start, int length);
|
|
void grid_damage_scroll(
|
|
struct grid *grid, enum damage_type damage_type, int lines);
|
|
|
|
void grid_erase(struct grid *grid, int start, int end);
|
|
|
|
void grid_cursor_to(struct grid *grid, int row, int col);
|
|
void grid_cursor_left(struct grid *grid, int count);
|
|
void grid_cursor_right(struct grid *grid, int count);
|
|
void grid_cursor_up(struct grid *grid, int count);
|
|
void grid_cursor_down(struct grid *grid, int count);
|
|
|
|
void grid_scroll(struct grid *grid, int rows);
|
|
void grid_scroll_reverse(struct grid *grid, int rows);
|
|
|
|
int grid_cursor_linear(const struct grid *grid, int row, int col);
|
|
|
|
|
|
//void grid_cursor_to(struct grid *grid, int pos);
|
|
//void grid_cursor_move(struct grid *grid, int cols);
|