summaryrefslogtreecommitdiffstats
path: root/cmd-list-clients.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2012-05-22 11:35:37 +0000
committerNicholas Marriott <nicm@openbsd.org>2012-05-22 11:35:37 +0000
commitebf94bc9cba6c41074fdfa1d1084ad5fff43fc24 (patch)
treef7f941af93113b5373618b569ea211c5acd7cfa4 /cmd-list-clients.c
parent682884edc5ef0b6ded98b385fce3066e820317ff (diff)
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.c9
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);