2019-06-17 19:33:10 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "terminal.h"
|
|
|
|
|
|
2019-06-25 20:11:08 +02:00
|
|
|
void grid_damage_all(struct grid *grid);
|
2019-06-19 14:17:43 +02:00
|
|
|
void grid_damage_update(struct grid *grid, int start, int length);
|
|
|
|
|
void grid_damage_erase(struct grid *grid, int start, int length);
|
2019-06-21 14:29:15 +02:00
|
|
|
void grid_damage_scroll(
|
2019-06-25 20:11:08 +02:00
|
|
|
struct grid *grid, enum damage_type damage_type,
|
|
|
|
|
struct scroll_region region, int lines);
|
2019-06-19 14:17:43 +02:00
|
|
|
|
2019-06-17 19:33:10 +02:00
|
|
|
void grid_erase(struct grid *grid, int start, int end);
|
|
|
|
|
|
2019-06-17 21:15:20 +02:00
|
|
|
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);
|
2019-06-19 10:04:47 +02:00
|
|
|
void grid_cursor_up(struct grid *grid, int count);
|
|
|
|
|
void grid_cursor_down(struct grid *grid, int count);
|
2019-06-17 21:15:20 +02:00
|
|
|
|
2019-06-19 10:27:31 +02:00
|
|
|
void grid_scroll(struct grid *grid, int rows);
|
2019-06-23 17:16:52 +02:00
|
|
|
void grid_scroll_reverse(struct grid *grid, int rows);
|
2019-06-19 10:27:31 +02:00
|
|
|
|
2019-06-25 20:11:08 +02:00
|
|
|
void grid_scroll_partial(
|
|
|
|
|
struct grid *grid, struct scroll_region region, int rows);
|
|
|
|
|
void grid_scroll_reverse_partial(
|
|
|
|
|
struct grid *grid, struct scroll_region region, int rows);
|
2019-06-23 21:12:32 +02:00
|
|
|
|
2019-06-17 21:15:20 +02:00
|
|
|
int grid_cursor_linear(const struct grid *grid, int row, int col);
|
|
|
|
|
|
2019-06-19 10:27:31 +02:00
|
|
|
|
2019-06-17 21:15:20 +02:00
|
|
|
//void grid_cursor_to(struct grid *grid, int pos);
|
|
|
|
|
//void grid_cursor_move(struct grid *grid, int cols);
|