diff options
author | nicm <nicm> | 2020-05-16 15:45:29 +0000 |
---|---|---|
committer | nicm <nicm> | 2020-05-16 15:45:29 +0000 |
commit | cf9baddd6f844e8a26f1e7c59ba1c9eb3358571f (patch) | |
tree | e5297040b1538b4f41d786c1329b391880a36b76 /cmd-list-clients.c | |
parent | 469eda7e44fe6d502c976ebc34bbd97e6c6ed3e5 (diff) | |
download | rtmux-cf9baddd6f844e8a26f1e7c59ba1c9eb3358571f.tar.gz rtmux-cf9baddd6f844e8a26f1e7c59ba1c9eb3358571f.tar.bz2 rtmux-cf9baddd6f844e8a26f1e7c59ba1c9eb3358571f.zip |
Change the existing client flags for control mode to apply for any
client, use the same mechanism for the read-only flag and add an
ignore-size flag.
refresh-client -F has become -f (-F stays for backwards compatibility)
and attach-session and switch-client now have -f flags also. A new
format "client_flags" lists the flags and is shown by list-clients by
default.
This separates the read-only flag from "ignore size" behaviour (new
ignore-size) flag - both behaviours are useful in different
circumstances.
attach -r and switchc -r remain and set or toggle both flags together.
Diffstat (limited to 'cmd-list-clients.c')
-rw-r--r-- | cmd-list-clients.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cmd-list-clients.c b/cmd-list-clients.c index 75118c8e..d450f017 100644 --- a/cmd-list-clients.c +++ b/cmd-list-clients.c @@ -28,10 +28,10 @@ * List all clients. */ -#define LIST_CLIENTS_TEMPLATE \ - "#{client_name}: #{session_name} " \ - "[#{client_width}x#{client_height} #{client_termname}]" \ - "#{?client_utf8, (utf8),} #{?client_readonly, (ro),}" +#define LIST_CLIENTS_TEMPLATE \ + "#{client_name}: #{session_name} " \ + "[#{client_width}x#{client_height} #{client_termname}] " \ + "#{?client_flags,(,}#{client_flags}#{?client_flags,),}" static enum cmd_retval cmd_list_clients_exec(struct cmd *, struct cmdq_item *); |