summaryrefslogtreecommitdiff
path: root/abi
diff options
context:
space:
mode:
Diffstat (limited to 'abi')
-rw-r--r--abi/term.zig10
1 files changed, 9 insertions, 1 deletions
diff --git a/abi/term.zig b/abi/term.zig
index 4dfd523a..64541d00 100644
--- a/abi/term.zig
+++ b/abi/term.zig
@@ -238,6 +238,10 @@ pub const ImagesAt = struct {
/// marked it input, and its style's identity.
pub const EchoCell = struct { cp: u21, input: bool, style: u32 };
+/// A link (OSC 8) under a cell: its URI (the emulator's bytes: copied before
+/// the next feed) and the cells `lo..hi` its run takes on that row.
+pub const Link = struct { uri: []const u8, lo: u16, hi: u16 };
+
/// What the dump keeps of a terminal beside its emulator, by name as every
/// dump is (core/walk.zig, through the core's `Term.State`).
pub const Parts = struct {
@@ -356,6 +360,10 @@ pub const Ops = struct {
promptCut: *const fn (s: *State, row: i32) ?PromptCut,
/// What a predicted echo reads of cell `x`, `y` of its active area.
echoCell: *const fn (s: *const State, x: u16, y: u16) ?EchoCell,
+ /// The link (OSC 8) cell `x` of row `row` (from the top of its history)
+ /// carries; `cut`: `x` and the run counted in the row's text, a
+ /// prompt's own cells cut off (a view out of tty mode).
+ link: *const fn (s: *State, row: i32, x: u16, cut: bool) ?Link,
// ---- the pager ----
/// `raw`, a program's output, as a terminal reads it: its text and its
@@ -391,7 +399,7 @@ pub const replicated = [_][]const u8{
"open", "close", "revive", "digest", "parts", "snapshot", "load", "reload",
"media", "feed", "grid", "resize", "replies",
"key", "mouse", "wheel", "paste", "modes", "promptMoves", "prompt", "commandOutput",
- "endOutputHere", "scrollback", "scrollbackLen", "textRows", "viewport", "editRows", "promptCut", "page",
+ "endOutputHere", "scrollback", "scrollbackLen", "textRows", "link", "viewport", "editRows", "promptCut", "page",
"filter", "spanColor", "hasImages",
};
pub const local = [_][]const u8{ "start", "stop", "gpa", "due", "cellPixels", "echoCell", "paint", "images" };