mirror of
https://github.com/tmate-io/tmate-ssh-server.git
synced 2020-11-18 19:53:51 -08:00
Sync OpenBSD patchset 961:
Add -S option to refresh-client to redraw status line, from Marco Beck.
This commit is contained in:
parent
edd59d9e0f
commit
f0c3e9babe
@ -28,8 +28,8 @@ int cmd_refresh_client_exec(struct cmd *, struct cmd_ctx *);
|
|||||||
|
|
||||||
const struct cmd_entry cmd_refresh_client_entry = {
|
const struct cmd_entry cmd_refresh_client_entry = {
|
||||||
"refresh-client", "refresh",
|
"refresh-client", "refresh",
|
||||||
"t:", 0, 0,
|
"St:", 0, 0,
|
||||||
CMD_TARGET_CLIENT_USAGE,
|
"[-S] " CMD_TARGET_CLIENT_USAGE,
|
||||||
0,
|
0,
|
||||||
NULL,
|
NULL,
|
||||||
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)
|
if ((c = cmd_find_client(ctx, args_get(args, 't'))) == NULL)
|
||||||
return (-1);
|
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);
|
return (0);
|
||||||
}
|
}
|
||||||
|
10
tmux.1
10
tmux.1
@ -14,7 +14,7 @@
|
|||||||
.\" IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
|
.\" IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
|
||||||
.\" OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
.\" OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
.\"
|
.\"
|
||||||
.Dd $Mdocdate: September 23 2011 $
|
.Dd $Mdocdate: September 28 2011 $
|
||||||
.Dt TMUX 1
|
.Dt TMUX 1
|
||||||
.Os
|
.Os
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
@ -690,11 +690,17 @@ or
|
|||||||
are invalid if
|
are invalid if
|
||||||
.Fl t
|
.Fl t
|
||||||
is used.
|
is used.
|
||||||
.It Ic refresh-client Op Fl t Ar target-client
|
.It Xo Ic refresh-client
|
||||||
|
.Op Fl S
|
||||||
|
.Op Fl t Ar target-client
|
||||||
|
.Xc
|
||||||
.D1 (alias: Ic refresh )
|
.D1 (alias: Ic refresh )
|
||||||
Refresh the current client if bound to a key, or a single client if one is given
|
Refresh the current client if bound to a key, or a single client if one is given
|
||||||
with
|
with
|
||||||
.Fl t .
|
.Fl t .
|
||||||
|
If
|
||||||
|
.Fl S
|
||||||
|
is specified, only update the client's status bar.
|
||||||
.It Xo Ic rename-session
|
.It Xo Ic rename-session
|
||||||
.Op Fl t Ar target-session
|
.Op Fl t Ar target-session
|
||||||
.Ar new-name
|
.Ar new-name
|
||||||
|
Loading…
x
Reference in New Issue
Block a user