aboutsummaryrefslogtreecommitdiff
path: root/vterm-module.h
diff options
context:
space:
mode:
Diffstat (limited to 'vterm-module.h')
-rw-r--r--vterm-module.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/vterm-module.h b/vterm-module.h
index afa672e..fe3be66 100644
--- a/vterm-module.h
+++ b/vterm-module.h
@@ -23,13 +23,18 @@ typedef struct ScrollbackLine {
VTermScreenCell cells[];
} ScrollbackLine;
+typedef struct Cursor {
+ int row, col;
+ bool blinking;
+ bool visible;
+} Cursor;
+
typedef struct Term {
VTerm *vt;
VTermScreen *vts;
// 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
@@ -40,11 +45,10 @@ 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;
- // Flag to indicate cursor is visible
- bool cursor_visible;
- // Flag to indicate cursor is blinking
- bool cursor_blinking;
+ Cursor cursor;
} Term;
// Faces