Skip to content

wezterm.mux.get_domain(name_or_id)

Since: Version 20230320-124340-559cb7b0

The functionality described in this section requires version 20230320-124340-559cb7b0 of wezterm, or a more recent version.

Resolves name_or_id to a domain and returns a MuxDomain object representation of it.

name_or_id can be:

  • A domain name string to resolve the domain by name
  • A domain id to resolve the domain by id
  • nil or omitted to return the current default domain
  • other lua types will generate a lua error

If the name or id don't map to a valid domain, this function will return nil.