term: group 'blink' state together in a struct

This commit is contained in:
Daniel Eklöf 2019-07-22 19:17:57 +02:00
parent 196f9d67c2
commit 428b31f071
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
3 changed files with 21 additions and 17 deletions

View file

@ -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;