pane:get_text_from_semantic_zone(zone)
Since: nightly builds only
This is a convenience method that calls pane:get_text_from_region() on the supplied zone parameter.
Use pane:get_semantic_zone_at() or pane:get_semantic_zones() to obtain a zone.
See Shell Integration for more information about semantic zones.