mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-16 05:34:00 -04:00
term: add ‘id’ parameter to term_osc8_open()
The current OSC-8 URL’s ID is now tracked along with the URI itself, and its starting point.
This commit is contained in:
parent
ecbfc2bbe9
commit
b934969b85
3 changed files with 7 additions and 4 deletions
|
|
@ -169,8 +169,9 @@ struct vt {
|
|||
|
||||
/* Start coordinate for current OSC-8 URI */
|
||||
struct {
|
||||
struct coord begin;
|
||||
uint64_t id;
|
||||
char *uri;
|
||||
struct coord begin;
|
||||
} osc8;
|
||||
|
||||
struct {
|
||||
|
|
@ -690,5 +691,5 @@ void term_ime_set_cursor_rect(
|
|||
void term_urls_reset(struct terminal *term);
|
||||
void term_collect_urls(struct terminal *term);
|
||||
|
||||
void term_osc8_open(struct terminal *term, const char *uri);
|
||||
void term_osc8_open(struct terminal *term, uint64_t id, const char *uri);
|
||||
void term_osc8_close(struct terminal *term);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue