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.
This commit is contained in:
Nicholas Marriott
2013-02-10 18:58:05 +00:00
parent 6c53a1ed68
commit 06ac4b628d
4 changed files with 12 additions and 3 deletions

View File

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