diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-08-09 19:27:51 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-08-09 19:27:51 +0000 |
| commit | 15afd267168f987a4ce46c29375a3df09c4f9a1a (patch) | |
| tree | dbe3ce3981166f73bedfddfec8c8ac32e4c90934 /selection.h | |
| parent | input: don't paste from primary if client is mouse tracking (diff) | |
osc: implement copy/paste to/from primary
Diffstat (limited to 'selection.h')
| -rw-r--r-- | selection.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/selection.h b/selection.h index d7b96d01..7345766c 100644 --- a/selection.h +++ b/selection.h @@ -13,17 +13,25 @@ void selection_start(struct terminal *term, int col, int row); void selection_update(struct terminal *term, int col, int row); void selection_finalize(struct terminal *term, uint32_t serial); void selection_cancel(struct terminal *term); + +bool selection_on_row_in_view(const struct terminal *term, int row_no); + void selection_mark_word(struct terminal *term, int col, int row, bool spaces_only, uint32_t serial); void selection_mark_row(struct terminal *term, int row, uint32_t serial); void selection_to_clipboard(struct terminal *term, uint32_t serial); void selection_from_clipboard(struct terminal *term, uint32_t serial); +void selection_to_primary(struct terminal *term, uint32_t serial); void selection_from_primary(struct terminal *term); -bool selection_on_row_in_view(const struct terminal *term, int row_no); bool text_to_clipboard(struct terminal *term, char *text, uint32_t serial); void text_from_clipboard( struct terminal *term, uint32_t serial, void (*cb)(const char *data, size_t size, void *user), void *user); + +bool text_to_primary(struct terminal *term, char *text, uint32_t serial); +void text_from_primary( + struct terminal *term, void (*cb)(const char *data, size_t size, void *user), + void *user); |
