pane:get_semantic_zones([zone_type])

Since: nightly builds only

When zone_type is omitted, returns the list of all semantic zones defined in the pane.

When zone_type is supplied, returns the list of all semantic zones of the matching type.

Value values for zone_type are:

  • "Prompt"
  • "Input"
  • "Output"

See Shell Integration for more information about semantic zones.