diff options
Diffstat (limited to 'test/session.zig')
| -rw-r--r-- | test/session.zig | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/session.zig b/test/session.zig index 8b8ec17f..d5f5cae8 100644 --- a/test/session.zig +++ b/test/session.zig @@ -416,6 +416,14 @@ pub const Session = struct { try s.write("/ctl", s.at("Addon load {s}\n", .{real})); } + /// A frontend that shows pictures (a window's, a terminal's with kitty + /// graphics): a PDF's pages, not its text layer. + pub fn graphics(s: *Session) void { + const p: *Pardes = @ptrCast(@alignCast(s.core)); + p.update(.{ .frontend = .{ .windowed = false, .native_images = true } }); + s.drain(); + } + /// A Look of `path` at the root (one relative to the working directory /// made absolute first); the serial of the pane with the keyboard after. /// A PDF loads the pdf addon first. |
