╭─────────────╮ │scroll to top│ ╰─────────────╯ ╭ Settings.zig ─────────────────────────────────────────────────╮ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ╰───────────────────────────────────────────────────────────────╯
╭────╮ ╭ clone ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╮ │http│ ssh │ │ ╰────╯ ╰ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╯
105 106 pub fn getGrid(self: View) ?Grid { 107 return self.stack.getGrid(); 108 } 109 110 pub fn getFocus(self: *View) *Focus { 111 return self.stack.getFocus(); 112 } 113 114 pub fn atTop(self: View) bool { 115 _ = self; 116 return true; 117 } 118 }; 119 120 fn ansiLabel(session: *const ui.Session) []const u8 { 121 const label_on = "turn off ANSI art"; 122 const label_off = "turn on ANSI art"; 123 return if (session.data.enable_ansi) label_on else label_off; 124 } 125