version 1.220, 2021/02/22 06:53:04 |
version 1.221, 2021/04/12 09:36:12 |
|
|
/* Set a status line message. */ |
/* Set a status line message. */ |
void |
void |
status_message_set(struct client *c, int delay, int ignore_styles, |
status_message_set(struct client *c, int delay, int ignore_styles, |
const char *fmt, ...) |
int ignore_keys, const char *fmt, ...) |
{ |
{ |
struct timeval tv; |
struct timeval tv; |
va_list ap; |
va_list ap; |
|
|
status_push_screen(c); |
status_push_screen(c); |
|
|
va_start(ap, fmt); |
va_start(ap, fmt); |
c->message_ignore_styles = ignore_styles; |
|
xvasprintf(&c->message_string, fmt, ap); |
xvasprintf(&c->message_string, fmt, ap); |
va_end(ap); |
va_end(ap); |
|
|
|
|
|
|
evtimer_add(&c->message_timer, &tv); |
evtimer_add(&c->message_timer, &tv); |
} |
} |
|
|
|
if (delay != 0) |
|
c->message_ignore_keys = ignore_keys; |
|
c->message_ignore_styles = ignore_styles; |
|
|
c->tty.flags |= (TTY_NOCURSOR|TTY_FREEZE); |
c->tty.flags |= (TTY_NOCURSOR|TTY_FREEZE); |
c->flags |= CLIENT_REDRAWSTATUS; |
c->flags |= CLIENT_REDRAWSTATUS; |