summaryrefslogtreecommitdiff
path: root/test/session.zig
diff options
context:
space:
mode:
Diffstat (limited to 'test/session.zig')
-rw-r--r--test/session.zig5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/session.zig b/test/session.zig
index f67f3b25..6d214874 100644
--- a/test/session.zig
+++ b/test/session.zig
@@ -220,6 +220,11 @@ pub const Session = struct {
};
return .{ @intCast(c.get("x").?.integer), @intCast(c.get("y").?.integer) };
}
+
+ /// Where `text` is first drawn on /screen, column and row.
+ pub fn where(s: *Session, text: []const u8) !struct { usize, usize } {
+ return s.find(text);
+ }
};
fn refusal(path: []const u8, r: Reply) error{Refused} {