Allow programs running in kitty to read/write from the clipboard

By default only writing is allowed. There is a config option to enable
reading, if needed.
This commit is contained in:
Kovid Goyal
2018-05-07 09:57:39 +05:30
parent 23ee6b3109
commit 889ca77912
6 changed files with 55 additions and 6 deletions

View File

@@ -341,6 +341,9 @@ dispatch_osc(Screen *screen, PyObject DUMP_UNUSED *dump_callback) {
case 119:
SET_COLOR(set_dynamic_color);
break;
case 52:
DISPATCH_OSC(clipboard_control);
break;
default:
REPORT_ERROR("Unknown OSC code: %u", code);
break;