mirror of
https://github.com/tmux/tmux.git
synced 2025-01-12 03:08:46 +00:00
Merge branch 'obsd-master'
This commit is contained in:
commit
7110226b96
5
spawn.c
5
spawn.c
@ -78,6 +78,8 @@ spawn_log(const char *from, struct spawn_context *sc)
|
|||||||
struct winlink *
|
struct winlink *
|
||||||
spawn_window(struct spawn_context *sc, char **cause)
|
spawn_window(struct spawn_context *sc, char **cause)
|
||||||
{
|
{
|
||||||
|
struct cmdq_item *item = sc->item;
|
||||||
|
struct client *c = item->client;
|
||||||
struct session *s = sc->s;
|
struct session *s = sc->s;
|
||||||
struct window *w;
|
struct window *w;
|
||||||
struct window_pane *wp;
|
struct window_pane *wp;
|
||||||
@ -180,7 +182,8 @@ spawn_window(struct spawn_context *sc, char **cause)
|
|||||||
/* Set the name of the new window. */
|
/* Set the name of the new window. */
|
||||||
if (~sc->flags & SPAWN_RESPAWN) {
|
if (~sc->flags & SPAWN_RESPAWN) {
|
||||||
if (sc->name != NULL) {
|
if (sc->name != NULL) {
|
||||||
w->name = xstrdup(sc->name);
|
w->name = format_single(item, sc->name, c, s, NULL,
|
||||||
|
NULL);
|
||||||
options_set_number(w->options, "automatic-rename", 0);
|
options_set_number(w->options, "automatic-rename", 0);
|
||||||
} else
|
} else
|
||||||
w->name = xstrdup(default_window_name(w));
|
w->name = xstrdup(default_window_name(w));
|
||||||
|
39
tmux.1
39
tmux.1
@ -938,7 +938,9 @@ If
|
|||||||
is specified, any other clients attached to the session are detached.
|
is specified, any other clients attached to the session are detached.
|
||||||
If
|
If
|
||||||
.Fl x
|
.Fl x
|
||||||
is given, send SIGHUP to the parent process of the client as well as
|
is given, send
|
||||||
|
.Dv SIGHUP
|
||||||
|
to the parent process of the client as well as
|
||||||
detaching the client, typically causing it to exit.
|
detaching the client, typically causing it to exit.
|
||||||
.Fl r
|
.Fl r
|
||||||
signifies the client is read-only (only keys bound to the
|
signifies the client is read-only (only keys bound to the
|
||||||
@ -989,7 +991,9 @@ option kills all but the client given with
|
|||||||
.Fl t .
|
.Fl t .
|
||||||
If
|
If
|
||||||
.Fl P
|
.Fl P
|
||||||
is given, send SIGHUP to the parent process of the client, typically causing it
|
is given, send
|
||||||
|
.Dv SIGHUP
|
||||||
|
to the parent process of the client, typically causing it
|
||||||
to exit.
|
to exit.
|
||||||
With
|
With
|
||||||
.Fl E ,
|
.Fl E ,
|
||||||
@ -5155,6 +5159,37 @@ channel are made to wait until the channel is unlocked with
|
|||||||
.Ic wait-for
|
.Ic wait-for
|
||||||
.Fl U .
|
.Fl U .
|
||||||
.El
|
.El
|
||||||
|
.Sh EXIT MESSAGES
|
||||||
|
When a
|
||||||
|
.Nm
|
||||||
|
client detaches, it prints a message.
|
||||||
|
This may be one of:
|
||||||
|
.Bl -tag -width Ds
|
||||||
|
.It [detached (from session ...)]
|
||||||
|
The client was detached normally.
|
||||||
|
.It [detached and SIGHUP]
|
||||||
|
The client was detached and its parent sent the
|
||||||
|
.Dv SIGHUP
|
||||||
|
signal (for example with
|
||||||
|
.Ic detach-client
|
||||||
|
.Fl P ) .
|
||||||
|
.It [lost tty]
|
||||||
|
The client's
|
||||||
|
.Xr tty 4
|
||||||
|
or
|
||||||
|
.Xr pty 4
|
||||||
|
was unexpectedly destroyed.
|
||||||
|
.It [terminated]
|
||||||
|
The client was killed with
|
||||||
|
.Dv SIGTERM .
|
||||||
|
.It [exited]
|
||||||
|
The server exited when it had no sessions.
|
||||||
|
.It [server exited]
|
||||||
|
The server exited when it received
|
||||||
|
.Dv SIGTERM .
|
||||||
|
.It [server exited unexpectedly]
|
||||||
|
The server crashed or otherwise exited without telling the client the reason.
|
||||||
|
.El
|
||||||
.Sh TERMINFO EXTENSIONS
|
.Sh TERMINFO EXTENSIONS
|
||||||
.Nm
|
.Nm
|
||||||
understands some unofficial extensions to
|
understands some unofficial extensions to
|
||||||
|
Loading…
Reference in New Issue
Block a user