summaryrefslogtreecommitdiff
path: root/test/session.zig
diff options
context:
space:
mode:
Diffstat (limited to 'test/session.zig')
-rw-r--r--test/session.zig6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/session.zig b/test/session.zig
index 8b3c5c41..b55987eb 100644
--- a/test/session.zig
+++ b/test/session.zig
@@ -182,6 +182,12 @@ pub const Session = struct {
fn pardesOf(s: *Session) *Pardes {
return @ptrCast(@alignCast(s.core));
}
+
+ // panes:
+ /// Where `text` is first drawn on the screen: its 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} {