diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2009-08-31 20:46:19 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2009-08-31 20:46:19 +0000 |
commit | 04319964b95304138dbe5cbce0b97222769d0c17 (patch) | |
tree | 3d067da0a55da208bbf9dd18d1711d5b165ffcfc /status.c | |
parent | 8102ec3be55e9800837eeb2f1f9135a433452794 (diff) | |
download | rtmux-04319964b95304138dbe5cbce0b97222769d0c17.tar.gz rtmux-04319964b95304138dbe5cbce0b97222769d0c17.tar.bz2 rtmux-04319964b95304138dbe5cbce0b97222769d0c17.zip |
Add a new display-panes command, with two options (display-panes-colour and
display-panes-time), which displays a visual indication of the number of each
pane.
Diffstat (limited to 'status.c')
-rw-r--r-- | status.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -541,13 +541,14 @@ status_message_set(struct client *c, const char *fmt, ...) status_prompt_clear(c); status_message_clear(c); + va_start(ap, fmt); + xvasprintf(&c->message_string, fmt, ap); + va_end(ap); + delay = options_get_number(&c->session->options, "display-time"); tv.tv_sec = delay / 1000; tv.tv_usec = (delay % 1000) * 1000L; - va_start(ap, fmt); - xvasprintf(&c->message_string, fmt, ap); - va_end(ap); if (gettimeofday(&c->message_timer, NULL) != 0) fatal("gettimeofday"); timeradd(&c->message_timer, &tv, &c->message_timer); |