╭─────────────╮ │scroll to top│ ╰─────────────╯ ╭ Settings.zig ─────────────────────────────────────────────────╮ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ╰───────────────────────────────────────────────────────────────╯
╭────╮ ╭ clone ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╮ │http│ ssh │ │ ╰────╯ ╰ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╯
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