From ebf94bc9cba6c41074fdfa1d1084ad5fff43fc24 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Tue, 22 May 2012 11:35:37 +0000 Subject: Switch all of the various choose- and list- commands over to the format infrastructure, from Thomas Adam. --- cmd-list-clients.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'cmd-list-clients.c') 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); -- cgit