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
window:active_tab()
{{since('20230408-112425-69ae8472')}}
A convenience accessor for returning the active tab within the window.
In earlier versions of wezterm, you could obtain this via:
function active_tab(window)
for _, item in ipairs(window:tabs_with_info()) do
if item.is_active then
return item.tab
end
end
end