aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-11-27 16:14:16 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-11-27 16:14:16 +0000
commitabe6a4f212e69c0f027f6ec0906822f448129777 (patch)
tree3dd05ae23678c36d441d4b272265f63a6726e18a /terminal.h
parentmain: tag fdm loop with likely() and unlikely() (diff)
parentterm: split cursor blink state into two (diff)
Merge branch 'split-cursor-blink-state'
Closes #218
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h16
1 files changed, 4 insertions, 12 deletions
diff --git a/terminal.h b/terminal.h
index 513dfcab..ea49edf2 100644
--- a/terminal.h
+++ b/terminal.h
@@ -336,18 +336,13 @@ struct terminal {
uint32_t default_table[256];
} colors;
- enum cursor_style default_cursor_style;
enum cursor_style cursor_style;
struct {
- bool active;
- enum { CURSOR_BLINK_ON, CURSOR_BLINK_OFF } state;
+ bool decset; /* Blink enabled via '\E[?12h' */
+ bool deccsusr; /* Blink enabled via '\E[X q' */
int fd;
+ enum { CURSOR_BLINK_ON, CURSOR_BLINK_OFF } state;
} cursor_blink;
- bool default_cursor_blink;
- struct {
- uint32_t text;
- uint32_t cursor;
- } default_cursor_color;
struct {
uint32_t text;
uint32_t cursor;
@@ -474,7 +469,6 @@ struct terminal {
} sixel;
bool quit;
- bool hold_at_exit;
bool is_shutting_down;
void (*shutdown_cb)(void *data, int exit_code);
void *shutdown_data;
@@ -544,9 +538,7 @@ 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_cursor_blink_restart(struct terminal *term);
+void term_cursor_blink_update(struct terminal *term);
void term_print(struct terminal *term, wchar_t wc, int width);