A modern terminal with a built-in multiplexer: close it and your sessions keep running. Run shells and tons of AI agents across your machines, then pick them up from desktop, browser, TUI and more. Written in Rust with no UI framework: interface drawn straight on the GPU. No Electron, GPUI or webview.
Rust agentagent-orchestrationaiai-agentsclaude-codecodexcoding-agentlinuxmacosmultiplayermultiplexerrustterminalterminal-emulatorterminal-multiplexertmuxtuiweztermwindows
fix(term): read scrollback correctly once its ring has wrapped
RoversXb43f33ccfe3b
diff --git a/term/src/screen.rs b/term/src/screen.rsindex 004c7954..e5070940 100644--- a/term/src/screen.rs+++ b/term/src/screen.rs@@ -1106,6 +1106,7 @@ impl Screen {F: FnMut(&[&Line]),{let (first, second) = self.lines.as_slices();+ let first_len = first.len();let first_range = 0..first.len();let second_range = first.len()..first.len() + second.len();let first_range = phys_intersection(&first_range, &phys_range);@@ -1115,7 +1116,9 @@ impl Screen {for line in &first[first_range] {lines.push(line);}- for line in &second[second_range] {+ for line in &second[second_range.start.saturating_sub(first_len)+ ..second_range.end.saturating_sub(first_len)]+ {lines.push(line);}func(&lines)