summaryrefslogtreecommitdiff
path: root/core/Term.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/Term.zig')
-rw-r--r--core/Term.zig7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/Term.zig b/core/Term.zig
index 32b98cd9..6415b199 100644
--- a/core/Term.zig
+++ b/core/Term.zig
@@ -56,6 +56,7 @@ pub const Painted = iface.Painted;
pub const PaintedRow = iface.PaintedRow;
pub const ImagesAt = iface.ImagesAt;
pub const EchoCell = iface.EchoCell;
+pub const Link = iface.Link;
fn the() *const iface.Ops {
return ops orelse unreachable; // no State is made without it
@@ -350,6 +351,11 @@ pub fn echoCell(s: *const State, x: u16, y: u16) ?EchoCell {
return the().echoCell(s.impl, x, y);
}
+/// The link (OSC 8) a cell of a row (from the top of the history) carries.
+pub fn link(s: *State, row: i32, x: u16, cut: bool) ?Link {
+ return the().link(s.impl, row, x, cut);
+}
+
// ---- the pager ----
/// A program's output, as a terminal reads it, paged (`pardes -`, a
@@ -442,6 +448,7 @@ pub const calls = [_]struct { []const u8, []const u8, []const u8 }{
.{ "scrollbackLen", "ninep/ctl.zig:1 ninep/pane.zig:1", "READ, NOT COVERED: the history's text's length (its row count is in the digest)" },
.{ "commandOutput", "ninep/pty.zig:1", "READ, NOT COVERED: a command's output rows (a 9P pty/run): taped as the session's answer" },
.{ "textRows", "edit.zig:2", "READ, NOT COVERED: every row's text, the history's among them (a selection, a Look over a shell)" },
+ .{ "link", "exec.zig:1", "READ, NOT COVERED: the URI of a link (OSC 8) a Look over a shell takes, as its text (`textRows`)" },
.{ "viewport", "body_layer.zig:1 replica.zig:1", "READ: the rows' text a view's place (in the digest, with its pane) shows (body_layer.zig: a draw's; replica.zig: a test's)" },
.{ "editRows", "ansi.zig:1 panes.zig:1", "READ: rows' text for a draw; a command's last rows read for the places its report names when it fails (panes.zig commandDone): in the digest as the emulator's rows are" },
// ---- local ----