mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-01 03:22:48 -05:00
Add GUI configuration for choice of clipboards.
On all platforms, you can now configure which clipboard the mouse pastes from, which clipboard Ctrl-Ins and Shift-Ins access, and which Ctrl-Shift-C and Ctrl-Shift-V access. In each case, the options are: - nothing at all - a clipboard which is implicitly written by the act of mouse selection (the PRIMARY selection on X, CLIP_LOCAL everywhere else) - the standard clipboard written by explicit copy/paste UI actions (CLIPBOARD on X, the unique system clipboard elsewhere). Also, you can control whether selecting text with the mouse _also_ writes to the explicitly accessed clipboard. The wording of the various messages changes between platforms, but the basic UI shape is the same everywhere.
This commit is contained in:
14
putty.h
14
putty.h
@ -899,6 +899,10 @@ void cleanup_exit(int);
|
||||
X(INT, NONE, rtf_paste) \
|
||||
X(INT, NONE, mouse_override) \
|
||||
X(INT, INT, wordness) \
|
||||
X(INT, NONE, mouseautocopy) \
|
||||
X(INT, NONE, mousepaste) \
|
||||
X(INT, NONE, ctrlshiftins) \
|
||||
X(INT, NONE, ctrlshiftcv) \
|
||||
/* translations */ \
|
||||
X(INT, NONE, vtmode) \
|
||||
X(STR, NONE, line_codepage) \
|
||||
@ -1433,6 +1437,16 @@ enum {
|
||||
};
|
||||
extern const char *const x11_authnames[]; /* declared in x11fwd.c */
|
||||
|
||||
/*
|
||||
* An enum for the copy-paste UI action configuration.
|
||||
*/
|
||||
enum {
|
||||
CLIPUI_NONE, /* UI action has no copy/paste effect */
|
||||
CLIPUI_IMPLICIT, /* use the default clipboard implicit in mouse actions */
|
||||
CLIPUI_EXPLICIT, /* use the default clipboard for explicit Copy/Paste */
|
||||
CLIPUI_CUSTOM, /* use a named clipboard (on systems that support it) */
|
||||
};
|
||||
|
||||
/*
|
||||
* Miscellaneous exports from the platform-specific code.
|
||||
*
|
||||
|
Reference in New Issue
Block a user