mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-20 05:33:47 -04:00
grid: enable rows to have ‘extra’ data associated with them
This patch adds an ‘extra’ member to the row struct. It is a pointer to a struct containing extra data to be associated with this row. Initially, this struct contains a list of URL ranges. These define (OSC-8) URLs on this row. The ‘extra’ data is allocated on-demand. I.e. the pointer is NULL by default; it is *not* allocated by grid_row_alloc().
This commit is contained in:
parent
3339915d20
commit
fd87bca102
3 changed files with 44 additions and 4 deletions
11
terminal.h
11
terminal.h
|
|
@ -86,10 +86,21 @@ struct composed {
|
|||
uint8_t count;
|
||||
};
|
||||
|
||||
struct row_uri_range {
|
||||
int start;
|
||||
int end;
|
||||
char *uri;
|
||||
};
|
||||
|
||||
struct row_data {
|
||||
tll(struct row_uri_range) uri_ranges;
|
||||
};
|
||||
|
||||
struct row {
|
||||
struct cell *cells;
|
||||
bool dirty;
|
||||
bool linebreak;
|
||||
struct row_data *extra;
|
||||
};
|
||||
|
||||
struct sixel {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue