diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-06-29 19:03:28 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-06-29 19:03:28 +0000 |
| commit | 1ecd4a6ae14d951090b88a18972d55d81232eabf (patch) | |
| tree | 46f35ef6c9f7a592911484386b086dbac6f24f9a /terminal.h | |
| parent | render: don't try to render glyph for empty cell(s) (diff) | |
Rename grid_* functions to term_*
Diffstat (limited to 'terminal.h')
| -rw-r--r-- | terminal.h | 27 |
1 files changed, 27 insertions, 0 deletions
@@ -143,10 +143,37 @@ enum keypad_mode { KEYPAD_NUMERICAL, KEYPAD_APPLICATION }; struct terminal { pid_t slave; int ptmx; + enum decckm decckm; enum keypad_mode keypad_mode; bool bracketed_paste; + struct vt vt; struct grid grid; struct kbd kbd; }; + +void term_damage_all(struct terminal *term); +void term_damage_update(struct terminal *term, int start, int length); +void term_damage_erase(struct terminal *term, int start, int length); +void term_damage_scroll( + struct terminal *term, enum damage_type damage_type, + struct scroll_region region, int lines); + +void term_erase(struct terminal *term, int start, int end); + +void term_cursor_to(struct terminal *term, int row, int col); +void term_cursor_left(struct terminal *term, int count); +void term_cursor_right(struct terminal *term, int count); +void term_cursor_up(struct terminal *term, int count); +void term_cursor_down(struct terminal *term, int count); + +void term_scroll(struct terminal *term, int rows); +void term_scroll_reverse(struct terminal *term, int rows); + +void term_scroll_partial( + struct terminal *term, struct scroll_region region, int rows); +void term_scroll_reverse_partial( + struct terminal *term, struct scroll_region region, int rows); + +int term_cursor_linear(const struct terminal *term, int row, int col); |
