diff options
| author | Lukas Fürmetz <fuermetz@mailbox.org> | 2018-11-11 22:19:43 +0100 |
|---|---|---|
| committer | Lukas Fürmetz <fuermetz@mailbox.org> | 2018-11-11 22:19:43 +0100 |
| commit | ff9290905d5ea4dfe1381e0662bbe8bc88203f79 (patch) | |
| tree | 536000e488475a9f85e9cbad01a8f22a03d0bbaf /vterm-module.h | |
| parent | 3e4c65ad13f6f84219c5d0a5afaa7c186cd9e0b2 (diff) | |
Refactor Cursor
Diffstat (limited to 'vterm-module.h')
| -rw-r--r-- | vterm-module.h | 15 |
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 |
