╭──────────╮ │← previous│ ╰──────────╯ ╭ added ─────────────────────╮ │src/embed/ansi/lich-king.txt│ ╰────────────────────────────╯ ╭ added ───────────────────╮ │src/embed/ansi/paladin.txt│ ╰──────────────────────────╯ ╭ added ──────────────────────╮ │src/embed/ansi/rune-sword.txt│ ╰─────────────────────────────╯ ╭ added ──────────────────────────────────╮ │src/embed/ansi/skeletal-sorceror-body.txt│ ╰─────────────────────────────────────────╯ ╭ added ──────────────────────────────────╮ │src/embed/ansi/skeletal-sorceror-head.txt│ ╰─────────────────────────────────────────╯ ╭ added ──────────────────╮ │src/embed/ansi/wizard.txt│ ╰─────────────────────────╯ ╭ changed ─╮ │src/ui.zig│ ╰──────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │11 const Key = xitui.input.Key; │ │12 const Grid = xitui.grid.Grid; │ │13 const Focus = xitui.focus.Focus; │ │14 +const ansi_arts: []const []const u8 = if (builtin.cpu.arch == .wasm32) &.{} else @import("ansi_art").art;│ │15 const evt = @import("./event.zig"); │ │16 const inp = @import("./ui/input.zig"); │ │17 │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────╮ │1418 current_page: RoutablePage = .default, │ │1419 // whether to render the ANSI art backdrop │ │1420 enable_ansi: bool = true, │ │1421 + // the selected ANSI art. the server serializes one image for WASM so │ │1422 + // the browser does not need the whole build-generated collection. │ │1423 + ansi_art: []const u8 = "", │ │1424 // the bound clone-service ports. absent in local mode, where clone urls│ │1425 // are not shown. │ │1426 clone_http_port: ?u16 = null, │ ╰──────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────╮ │1920 self.arena = entry.arena; │ │1921 session.page_arena = entry.arena; │ │1922 session.data.current_page = entry.route; │ │1923 + chooseAnsiArtForNavigation(session); │ │1924 return; │ │1925 } │ │1926 // nothing to go back to; switch to the quit confirmation│ ╰───────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────╮ │1987 .repo => |*p| .{ .repo = try .init(allocator, p, session) }, │ │1988 }; │ │1989 │ │1985 - const demon_art = @embedFile("embed/demon.ans"); │ │1990 + chooseAnsiArtForNavigation(session); │ │1991 │ │1992 // on the TUI/SSH, the page sits above a one-row footer showing the url│ │1993 var root = if (session.is_terminal) blk: { │ ╰─────────────────────────────────────────────────────────────────────────────────╯ ╭──────╮ │next →│ ╰──────╯