active_tab
On this page
window:active_tab()#
A convenience accessor for returning the active tab within the window.
In earlier versions of wakterm, 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