aboutsummaryrefslogtreecommitdiff
path: root/vterm-module.h
diff options
context:
space:
mode:
Diffstat (limited to 'vterm-module.h')
-rw-r--r--vterm-module.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/vterm-module.h b/vterm-module.h
index 3e636c7..dc8f778 100644
--- a/vterm-module.h
+++ b/vterm-module.h
@@ -22,6 +22,12 @@ static bool refresh_pending = false;
#define MAX(X, Y) ((X) > (Y) ? (X) : (Y))
#endif
+typedef struct Cursor {
+ int row, col;
+ bool blinking;
+ bool visible;
+} Cursor;
+
typedef struct Term {
VTerm *vt;
VTermScreen *vts;
@@ -41,14 +47,7 @@ typedef struct Term {
bool pending_resize; // pending width/height
bool is_invalidated;
- struct {
- int row, col;
- } cursor;
-
- // Flag to indicate cursor is visible
- bool cursor_visible;
- // Flag to indicate cursor is blinking
- bool cursor_blinking;
+ Cursor cursor;
} Term;
// Faces