mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-06 05:52:48 -05:00
Add a system of clipboard identifiers.
This lays some groundwork for making PuTTY's cut and paste handling more flexible in the area of which clipboard(s) it reads and writes, if more than one is available on the system. I've introduced a system of list macros which define an enumeration of integer clipboard ids, some defined centrally in putty.h (at present just a CLIP_NULL which never has any text in it, because that seems like the sort of thing that will come in useful for configuring a given copy or paste UI action to be ignored) and some defined per platform. All the front end functions that copy and paste take a clipboard id, and the Terminal structure is now configured at startup to tell it which clipboard id it should paste from on a mouse click, and which it should copy from on a selection. However, I haven't actually added _real_ support for multiple X11 clipboards, in that the Unix front end supports a single CLIP_SYSTEM regardless of whether it's in OS X or GTK mode. So this is currently a NFC refactoring which does nothing but prepare the way for real changes to come.
This commit is contained in:
@ -82,9 +82,10 @@ void free_ctx(Context ctx) { }
|
||||
void palette_set(void *frontend, int a, int b, int c, int d) { }
|
||||
void palette_reset(void *frontend) { }
|
||||
int palette_get(void *frontend, int n, int *r, int *g, int *b) {return FALSE;}
|
||||
void write_clip(void *frontend, wchar_t *a, int *b, truecolour *c, int d, int e) { }
|
||||
void write_clip(void *frontend, int clipboard,
|
||||
wchar_t *a, int *b, truecolour *c, int d, int e) { }
|
||||
void set_raw_mouse_mode(void *frontend, int m) { }
|
||||
void request_paste(void *frontend) { }
|
||||
void frontend_request_paste(void *frontend, int clipboard) { }
|
||||
void do_beep(void *frontend, int a) { }
|
||||
void sys_cursor(void *frontend, int x, int y) { }
|
||||
void modalfatalbox(const char *fmt, ...) { exit(0); }
|
||||
|
Reference in New Issue
Block a user