diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2012-05-22 11:35:37 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2012-05-22 11:35:37 +0000 |
commit | ebf94bc9cba6c41074fdfa1d1084ad5fff43fc24 (patch) | |
tree | f7f941af93113b5373618b569ea211c5acd7cfa4 /cmd-list-clients.c | |
parent | 682884edc5ef0b6ded98b385fce3066e820317ff (diff) | |
download | rtmux-ebf94bc9cba6c41074fdfa1d1084ad5fff43fc24.tar.gz rtmux-ebf94bc9cba6c41074fdfa1d1084ad5fff43fc24.tar.bz2 rtmux-ebf94bc9cba6c41074fdfa1d1084ad5fff43fc24.zip |
Switch all of the various choose- and list- commands over to the format
infrastructure, from Thomas Adam.
Diffstat (limited to 'cmd-list-clients.c')
-rw-r--r-- | cmd-list-clients.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/cmd-list-clients.c b/cmd-list-clients.c index 04d756b5..c818fd6d 100644 --- a/cmd-list-clients.c +++ b/cmd-list-clients.c @@ -58,13 +58,8 @@ cmd_list_clients_exec(struct cmd *self, struct cmd_ctx *ctx) } else s = NULL; - template = args_get(args, 'F'); - if (template == NULL) { - template = "#{client_tty}: #{session_name} " - "[#{client_width}x#{client_height} #{client_termname}]" - "#{?client_utf8, (utf8),}" - "#{?client_readonly, (ro),}"; - } + if ((template = args_get(args, 'F')) == NULL) + template = DEFAULT_CLIENT_TEMPLATE; for (i = 0; i < ARRAY_LENGTH(&clients); i++) { c = ARRAY_ITEM(&clients, i); |