mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
selection: add text_from_clipboard()
This function reads data from the clipboard, and calls a user-provided callback for each chunk of clipboard data.
This commit is contained in:
parent
9c3ccc182e
commit
793c37923e
2 changed files with 30 additions and 7 deletions
|
|
@ -18,3 +18,7 @@ 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);
|
||||
void text_from_clipboard(
|
||||
struct terminal *term, uint32_t serial,
|
||||
void (*cb)(const char *data, size_t size, void *user),
|
||||
void *user);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue