aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-11-17 08:44:31 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-11-17 08:44:31 +0000
commitd637b8c9ba8faa68e90c531131fa29b0abd9aaab (patch)
tree9c4516983dc5d96c78b333b5631c848f80ed8b23 /terminal.h
parentterm: rename: print_needs_wrap -> lcf (Last Column Flag) (diff)
term: add struct cursor
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/terminal.h b/terminal.h
index 4e1f0f85..957f6c29 100644
--- a/terminal.h
+++ b/terminal.h
@@ -61,6 +61,10 @@ struct coord {
int row;
};
+struct cursor {
+ struct coord point;
+};
+
enum damage_type {DAMAGE_SCROLL, DAMAGE_SCROLL_REVERSE,
DAMAGE_SCROLL_IN_VIEW, DAMAGE_SCROLL_REVERSE_IN_VIEW};
@@ -216,9 +220,9 @@ struct terminal {
} colors;
enum cursor_origin origin;
- struct coord cursor;
- struct coord saved_cursor;
- struct coord alt_saved_cursor;
+ struct cursor cursor;
+ struct cursor saved_cursor;
+ struct cursor alt_saved_cursor;
enum cursor_style default_cursor_style;
enum cursor_style cursor_style;
bool cursor_blinking;