summaryrefslogtreecommitdiff
path: root/src/tagline.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/tagline.zig')
-rw-r--r--src/tagline.zig4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tagline.zig b/src/tagline.zig
index 9bd49eef..032fb5a0 100644
--- a/src/tagline.zig
+++ b/src/tagline.zig
@@ -124,6 +124,10 @@ pub fn pathPrefix(arena: std.mem.Allocator, pane: *Pane) ![]const u8 {
// Unsaved text shows on the grip, as acme's modbutton does, not as a
// mark in the text: the prefix is the name alone.
if (pane.file) |f| return if (pane.prompt == .name) pane.input.own orelse f.path else f.path;
+ // A terminal showing kitty graphics says how it draws them, as an image
+ // pane does, and so does one drawing them as glyph art by choice.
+ if (panes.terminal.petscii(pane)) |on| if (on or panes.terminal.hasImages(pane))
+ return std.fmt.allocPrint(arena, "{s} petscii:{s}", .{ (try shownDir(arena, pane)), if (on) "on" else "off" });
return (try shownDir(arena, pane));
}