Skip to content

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.

Mirror the negative-z image pass on right-to-left lines

RoversXea4794ee88f4
diff --git a/wezterm-gui/src/termwindow/render/screen_line.rs b/wezterm-gui/src/termwindow/render/screen_line.rs
index 441cbb8e..12fbfcd2 100644
--- a/wezterm-gui/src/termwindow/render/screen_line.rs
+++ b/wezterm-gui/src/termwindow/render/screen_line.rs
@@ -488,7 +488,10 @@ impl crate::TermWindow {
gl_state,
layers,
0,
- visual_cell_idx + glyph_idx,
+ // Same mirroring the z >= 0 pass applies below;
+ // without it the two layers of a right-to-left
+ // line land at opposite ends.
+ phys(visual_cell_idx + glyph_idx, num_cols, direction),
&params,
hsv,
item.fg_color,