aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-07-22 17:17:57 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-07-22 17:17:57 +0000
commit428b31f0713d69fe07ecde19eb103a8274a2f96a (patch)
treed5798079ebfb08060f4067f56d35ece62b6535c2 /terminal.h
parentterm: group 'flash' state together in a struct (diff)
term: group 'blink' state together in a struct
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/terminal.h b/terminal.h
index bf693769..451d7ac9 100644
--- a/terminal.h
+++ b/terminal.h
@@ -248,9 +248,11 @@ struct terminal {
int fd;
} flash;
- bool is_blinking;
- enum { BLINK_ON, BLINK_OFF } blink_mode;
- int blink_timer_fd;
+ struct {
+ bool active;
+ enum { BLINK_ON, BLINK_OFF } state;
+ int fd;
+ } blink;
struct vt vt;
struct kbd kbd;