mirror of
https://github.com/tmux/tmux.git
synced 2025-12-17 12:06:11 +00:00
Add a get-clipboard option which when enabled (the default is off) uses
the same mechanism as palette requests to request clipboard from the terminal and forward to the requesting pane. Remove the now-redundant forward-to-pane ability from "refresh-client -l". GitHub issue 4275.
This commit is contained in:
9
tmux.h
9
tmux.h
@@ -1098,6 +1098,7 @@ struct window_mode_entry {
|
||||
/* Type of request to client. */
|
||||
enum input_request_type {
|
||||
INPUT_REQUEST_PALETTE,
|
||||
INPUT_REQUEST_CLIPBOARD,
|
||||
INPUT_REQUEST_QUEUE
|
||||
};
|
||||
|
||||
@@ -1107,6 +1108,12 @@ struct input_request_palette_data {
|
||||
int c;
|
||||
};
|
||||
|
||||
/* Clipboard request reply data. */
|
||||
struct input_request_clipboard_data {
|
||||
char *buf;
|
||||
size_t len;
|
||||
};
|
||||
|
||||
/* Request sent to client on behalf of pane. */
|
||||
TAILQ_HEAD(input_requests, input_request);
|
||||
|
||||
@@ -1975,7 +1982,7 @@ struct client {
|
||||
#define CLIENT_CONTROL_PAUSEAFTER 0x100000000ULL
|
||||
#define CLIENT_CONTROL_WAITEXIT 0x200000000ULL
|
||||
#define CLIENT_WINDOWSIZECHANGED 0x400000000ULL
|
||||
#define CLIENT_CLIPBOARDBUFFER 0x800000000ULL
|
||||
/* 0x800000000ULL unused */
|
||||
#define CLIENT_BRACKETPASTING 0x1000000000ULL
|
||||
#define CLIENT_ASSUMEPASTING 0x2000000000ULL
|
||||
#define CLIENT_REDRAWSCROLLBARS 0x4000000000ULL
|
||||
|
||||
Reference in New Issue
Block a user