diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2011-09-28 20:11:21 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2011-09-28 20:11:21 +0000 |
commit | b1ed2d5bd9ce9ac52581faa59497836c0a54966c (patch) | |
tree | 228f69ed99e0b52dc3db9f1595a839b51ce1e40d /cmd-refresh-client.c | |
parent | e6a59c4bee6ab5da56e3ff6b27a5e16d868d638f (diff) | |
download | rtmux-b1ed2d5bd9ce9ac52581faa59497836c0a54966c.tar.gz rtmux-b1ed2d5bd9ce9ac52581faa59497836c0a54966c.tar.bz2 rtmux-b1ed2d5bd9ce9ac52581faa59497836c0a54966c.zip |
Add -S option to refresh-client to redraw status line, from Marco Beck.
Diffstat (limited to 'cmd-refresh-client.c')
-rw-r--r-- | cmd-refresh-client.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/cmd-refresh-client.c b/cmd-refresh-client.c index 5186dcb9..e7e10696 100644 --- a/cmd-refresh-client.c +++ b/cmd-refresh-client.c @@ -28,8 +28,8 @@ int cmd_refresh_client_exec(struct cmd *, struct cmd_ctx *); const struct cmd_entry cmd_refresh_client_entry = { "refresh-client", "refresh", - "t:", 0, 0, - CMD_TARGET_CLIENT_USAGE, + "St:", 0, 0, + "[-S] " CMD_TARGET_CLIENT_USAGE, 0, NULL, NULL, @@ -45,7 +45,11 @@ cmd_refresh_client_exec(struct cmd *self, struct cmd_ctx *ctx) if ((c = cmd_find_client(ctx, args_get(args, 't'))) == NULL) return (-1); - server_redraw_client(c); + if (args_has(args, 'S')) { + status_update_jobs(c); + server_status_client(c); + } else + server_redraw_client(c); return (0); } |