aboutsummaryrefslogtreecommitdiff
path: root/vterm-module.h
diff options
context:
space:
mode:
authorjixiufeng <jixiufeng@luojilab.com>2018-10-26 10:52:30 +0800
committerjixiufeng <jixiufeng@luojilab.com>2018-11-01 22:19:11 +0800
commitd8f3388733cfb5abbe00966ab30e1672ed0ae046 (patch)
tree8a7609b3f47efdebb6b4732b2f66fe5a5b2ede0e /vterm-module.h
parent9738bb97f5a269b1a68a9e785236eb2b36a37562 (diff)
only refresh invalid lines
Diffstat (limited to 'vterm-module.h')
-rw-r--r--vterm-module.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/vterm-module.h b/vterm-module.h
index 3e96da6..3e636c7 100644
--- a/vterm-module.h
+++ b/vterm-module.h
@@ -28,7 +28,6 @@ typedef struct Term {
// buffer used to:
// - convert VTermScreen cell arrays into utf8 strings
// - receive data from libvterm as a result of key presses.
- char textbuf[0x1fff];
ScrollbackLine **sb_buffer; // Scrollback buffer storage for libvterm
size_t sb_current; // number of rows pushed to sb_buffer
size_t sb_size; // sb_buffer size
@@ -39,6 +38,12 @@ typedef struct Term {
int sb_pending;
int invalid_start, invalid_end; // invalid rows in libvterm screen
+ bool pending_resize; // pending width/height
+ bool is_invalidated;
+
+ struct {
+ int row, col;
+ } cursor;
// Flag to indicate cursor is visible
bool cursor_visible;