╭─────────────╮ │scroll to top│ ╰─────────────╯ ╭ ui.zig ───────────────────────────────────────────────────────╮ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ╰───────────────────────────────────────────────────────────────╯
╭────╮ ╭ clone ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╮ │http│ ssh │ │ ╰────╯ ╰ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╯
2963 2964 // native and server-side sessions choose from the embedded collection. WASM 2965 // keeps the art serialized by the server instead. 2966 fn chooseAnsiArtForNavigation(session: *Session) void { 2967 if (comptime ansi_art.art.len == 0) return; 2968 if (session.data.current_page == .not_found) { 2969 session.data.ansi_art = ansi_art.not_found; 2970 return; 2971 } 2972 const io = session.io orelse return; 2973 var random: usize = undefined; 2974 io.random(std.mem.asBytes(&random)); 2975 session.data.ansi_art = ansi_art.art[random % ansi_art.art.len]; 2976 } 2977