From 167036ccbea9af961c2635226a7c9746f2f8cbf5 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Fri, 19 Jul 2019 11:12:14 +0200 Subject: selection: add text_to_clipboard() This function takes a string and makes it available to the clipboard. --- selection.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'selection.h') diff --git a/selection.h b/selection.h index 772f5a73..a98a0327 100644 --- a/selection.h +++ b/selection.h @@ -16,3 +16,5 @@ void selection_mark_word(struct terminal *term, int col, int row, uint32_t seria void selection_to_clipboard(struct terminal *term, uint32_t serial); void selection_from_clipboard(struct terminal *term, uint32_t serial); void selection_from_primary(struct terminal *term); + +bool text_to_clipboard(struct terminal *term, char *text, uint32_t serial); -- cgit v1.3