╭─────────────╮ │scroll to top│ ╰─────────────╯ ╭ thread.zig ───────────────────────────────────────────────────╮ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ╰───────────────────────────────────────────────────────────────╯
╭────╮ ╭ clone ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╮ │http│ ssh │ │ ╰────╯ ╰ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╯
2968 } 2969 2970 // cross to the header tabs above the stack. 2971 fn focusHeader(self: *This, root_focus: *Focus) void { 2972 root_focus.setFocus(self.box.children.keys()[header_index]); 2973 } 2974 2975 pub fn clearGrid(self: *This) void { 2976 self.box.clearGrid(); 2977 } 2978 2979 pub fn getGrid(self: This) ?Grid { 2980 return self.box.getGrid(); 2981 } 2982 2983 pub fn getFocus(self: *This) *Focus { 2984 return self.box.getFocus(); 2985 } 2986 2987 // for the parent's "scroll up at the top jumps to the header" check: at the 2988 // top only while the header tabs hold focus, so up from the split 2989 // crosses into the tabs first. 2990 pub fn atTop(self: *This) bool { 2991 return self.headerActive(); 2992 } 2993 }; 2994 } 2995