diff options
Diffstat (limited to 'terminal.h')
| -rw-r--r-- | terminal.h | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -232,7 +232,10 @@ struct terminal { struct cursor alt_saved_cursor; enum cursor_style default_cursor_style; enum cursor_style cursor_style; - bool cursor_blinking; + struct { + enum { CURSOR_BLINK_ON, CURSOR_BLINK_OFF } state; + int fd; + } cursor_blink; struct { uint32_t text; uint32_t cursor; @@ -292,6 +295,7 @@ struct terminal { struct coord actual; /* Absolute */ struct coord in_view; /* Offset by view */ struct cell *cell; /* For easy access to content */ + int blink_state; } last_cursor; struct buffer *last_buf; /* Buffer we rendered to last time */ @@ -345,6 +349,8 @@ void term_cursor_left(struct terminal *term, int count); void term_cursor_right(struct terminal *term, int count); void term_cursor_up(struct terminal *term, int count); void term_cursor_down(struct terminal *term, int count); +void term_cursor_blink_enable(struct terminal *term); +void term_cursor_blink_disable(struct terminal *term); void term_scroll(struct terminal *term, int rows); void term_scroll_reverse(struct terminal *term, int rows); |
