From 06ac4b628dfb581eaad29e8a33859ab9bb07f8bb Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Sun, 10 Feb 2013 18:58:05 +0000 Subject: Add a format client_prefix which is 1 if prefix key has been pressed, used for example #{?client_prefix,X,Y}. Also a few extra server_client_status needed. --- format.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'format.c') diff --git a/format.c b/format.c index 1143ced3..abd6808c 100644 --- a/format.c +++ b/format.c @@ -322,6 +322,8 @@ format_client(struct format_tree *ft, struct client *c) *strchr(tim, '\n') = '\0'; format_add(ft, "client_activity_string", "%s", tim); + format_add(ft, "client_prefix", "%d", !!(c->flags & CLIENT_PREFIX)); + if (c->tty.flags & TTY_UTF8) format_add(ft, "client_utf8", "%d", 1); else -- cgit