Support OSC 52 ? to read the top buffer inside tmux (when set-clipboard

is changed to on), also add refresh-client -l to ask tmux to use the
same mechanism to get the clipboard from the terminal outside
tmux. GitHub issue 1477.
This commit is contained in:
nicm
2018-10-18 08:04:14 +00:00
parent bc0e527f32
commit a51668ca06
4 changed files with 201 additions and 39 deletions

10
tmux.1
View File

@ -917,8 +917,8 @@ is used, the
.Ic update-environment
option will not be applied.
.It Xo Ic refresh-client
.Op Fl lS
.Op Fl C Ar width,height
.Op Fl S
.Op Fl t Ar target-client
.Xc
.D1 (alias: Ic refresh )
@ -931,6 +931,10 @@ is specified, only update the client's status line.
.Pp
.Fl C
sets the width and height of a control client.
.Fl l
requests the clipboard from the client using the
.Xr xterm 1
escape sequence and stores it in a new paste buffer.
.It Xo Ic rename-session
.Op Fl t Ar target-session
.Ar new-name
@ -3890,7 +3894,7 @@ option.
.El
.Pp
When a pane is first created, its title is the hostname.
A pane's title can be set via the OSC title setting sequence, for example:
A pane's title can be set via the title setting escape sequence, for example:
.Bd -literal -offset indent
$ printf '\e033]2;My Title\e033\e\e'
.Ed
@ -4444,7 +4448,7 @@ Indicate that the terminal supports the
.Ql direct colour
RGB escape sequence (for example, \ee[38;2;255;255;255m).
.Pp
If supported, this is used for the OSC initialize colour escape sequence (which
If supported, this is used for the initialize colour escape sequence (which
may be enabled by adding the
.Ql initc
and