Add clipboard feature

Use GTK to take the text from the clipboard.
Add `/paste` command which pastes this text now to console window.
This commit is contained in:
Michael Vetter
2019-10-29 14:30:25 +01:00
parent aa0c638394
commit b46dbcc363
5 changed files with 137 additions and 0 deletions

View File

@@ -2415,6 +2415,19 @@ static struct cmd_t command_defs[] =
CMD_NOARGS
CMD_NOEXAMPLES
},
{ "/paste",
parse_args, 0, 0, NULL,
CMD_NOSUBFUNCS
CMD_MAINFUNC(cmd_paste)
CMD_NOTAGS
CMD_SYN(
"/paste")
CMD_DESC(
"Paste clipboard.")
CMD_NOARGS
CMD_NOEXAMPLES
},
};
static GHashTable *search_index;