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.

656 B
Raw Blame

CloseCurrentTab

Closes the current tab, terminating all contained panes. If that was the last tab, closes that window. If that was the last window, wezterm terminates.

config.keys = {
  {
    key = 'w',
    mods = 'CMD',
    action = wezterm.action.CloseCurrentTab { confirm = true },
  },
}

When confirm is true, an overlay will render over the tab to ask you to confirm whether you want to close it. See also skip_close_confirmation_for_processes_named.

If confirm is false then this action will immediately close the tab and terminates its panes without prompting.