aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-06-29 19:03:28 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-06-29 19:03:28 +0000
commit1ecd4a6ae14d951090b88a18972d55d81232eabf (patch)
tree46f35ef6c9f7a592911484386b086dbac6f24f9a /terminal.h
parentrender: 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.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/terminal.h b/terminal.h
index 86845c2d..1a2fe8af 100644
--- a/terminal.h
+++ b/terminal.h
@@ -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);