aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-07-03 20:30:00 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-07-03 20:30:00 +0000
commit9f12bca21e021d4640e1d8a8709fe8a65cb2c876 (patch)
treef597eff1e1f15317ab156a34fc897f7dd6d303c8 /terminal.h
parentvt: only prep logging of CSI/ESC parameters when debug logging is enabled (diff)
parentcsi: fix bug: cursor horizontal absolute (<ESC> Pn G) was off-by-one (diff)
Merge branch 'fast-scroll'
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h20
1 files changed, 12 insertions, 8 deletions
diff --git a/terminal.h b/terminal.h
index cceaa6b6..f48158e5 100644
--- a/terminal.h
+++ b/terminal.h
@@ -62,10 +62,11 @@ struct damage {
};
struct grid {
- size_t size;
- size_t offset;
+ int size;
+ int offset;
struct cell *cells;
+ struct cell *cur_line;
tll(struct damage) damage;
tll(struct damage) scroll_damage;
@@ -73,7 +74,7 @@ struct grid {
struct vt_subparams {
unsigned value[16];
- size_t idx;
+ int idx;
};
struct vt_param {
@@ -85,20 +86,20 @@ struct vt {
int state; /* enum state */
struct {
struct vt_param v[16];
- size_t idx;
+ int idx;
} params;
struct {
uint8_t data[2];
- size_t idx;
+ int idx;
} intermediates;
struct {
uint8_t data[1024];
- size_t idx;
+ int idx;
} osc;
struct {
uint8_t data[4];
- size_t idx;
- size_t left;
+ int idx;
+ int left;
} utf8;
struct attributes attrs;
bool dim;
@@ -132,6 +133,9 @@ struct terminal {
enum decckm decckm;
enum keypad_mode keypad_mode;
+ bool hide_cursor;
+ bool auto_margin;
+ bool insert_mode;
bool bracketed_paste;
struct vt vt;