From f922f8b5db1f3b92d954c43860c32cd251d5bc55 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Fri, 6 Nov 2026 11:38:06 -0300 Subject: kinds #20, their tests and docs: T1's sessions are a terminal without graphics, so a PDF's key test is the base's text-layer one again beside the strip's (Session.graphics gives a frontend pictures), /addons says 2.2; pane cases for the hand over a link and a touchpad's fraction; reference.typ and the changelog say what a PDF does with and without graphics and what 2.2 added Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- test/session.zig | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test/session.zig') 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. -- cgit v1.3