╭─────────────╮ │scroll to top│ ╰─────────────╯ ╭ Settings.zig ─────────────────────────────────────────────────╮ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ╰───────────────────────────────────────────────────────────────╯
╭────╮ ╭ clone ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╮ │http│ ssh │ │ ╰────╯ ╰ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╯
128 self.center.clearGrid(); 129 } 130 131 pub fn getGrid(self: View) ?Grid { 132 return self.center.getGrid(); 133 } 134 135 pub fn getFocus(self: *View) *Focus { 136 return self.center.getFocus(); 137 } 138 139 pub fn getSelectedIndex(self: View) ?usize { 140 _ = self; 141 return 0; 142 } 143 }; 144 145 fn ansiLabel(session: *const ui.Session) []const u8 { 146 const label_on = "turn off ANSI art"; 147 const label_off = "turn on ANSI art"; 148 return if (session.data.enable_ansi) label_on else label_off; 149 } 150