From 87a2a13f6841236b4e52313488062fcd50e03352 Mon Sep 17 00:00:00 2001 From: Tiago Cunha Date: Sun, 21 Aug 2011 12:38:55 +0000 Subject: Sync OpenBSD patchset 946: Add a -r flag to switch-client to toggle the client read-only flag. From Johan Commelin. --- cmd-choose-client.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'cmd-choose-client.c') diff --git a/cmd-choose-client.c b/cmd-choose-client.c index df1008d3..730474dc 100644 --- a/cmd-choose-client.c +++ b/cmd-choose-client.c @@ -76,9 +76,11 @@ cmd_choose_client_exec(struct cmd *self, struct cmd_ctx *ctx) idx++; window_choose_add(wl->window->active, i, - "%s: %s [%ux%u %s]%s", c->tty.path, + "%s: %s [%ux%u %s]%s%s", c->tty.path, c->session->name, c->tty.sx, c->tty.sy, - c->tty.termname, c->tty.flags & TTY_UTF8 ? " (utf8)" : ""); + c->tty.termname, + c->tty.flags & TTY_UTF8 ? " (utf8)" : "", + c->flags & CLIENT_READONLY ? " (ro)" : ""); } cdata = xmalloc(sizeof *cdata); -- cgit