mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
osc: implement copy/paste to/from primary
This commit is contained in:
parent
70b6d9d7d2
commit
15afd26716
3 changed files with 113 additions and 70 deletions
10
selection.h
10
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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue