Pane
object¶
Since: Version 20221119-145034-49b9839f
The functionality described in this section requires version 20221119-145034-49b9839f of wezterm, or a more recent version.
In previous releases there were separate MuxPane
and Pane
objects created
by the mux and gui layers, respectively. This is no longer the case: there is
now just the underlying mux pane which is referred to in these docs as Pane
for the sake of simplicity.
A Pane object is typically passed to your code via an event callback. A Pane object is a handle to a live instance of a Pane that is known to the wezterm process. A Pane object tracks the pseudo terminal (or real serial terminal) and associated process(es) and the parsed screen and scrollback.
A Pane object can be used to send input to the associated processes and introspect the state of the terminal emulation for that pane.
Available methods¶
- activate
- get_current_working_dir
- get_cursor_position
- get_dimensions
- get_domain_name
- get_foreground_process_info
- get_foreground_process_name
- get_lines_as_escapes
- get_lines_as_text
- get_logical_lines_as_text
- get_metadata
- get_semantic_zone_at
- get_semantic_zones
- get_text_from_region
- get_text_from_semantic_zone
- get_title
- get_tty_name
- get_user_vars
- has_unseen_output
- inject_output
- is_alt_screen_active
- move_to_new_tab
- move_to_new_window
- mux_pane
- pane_id
- paste
- send_paste
- send_text
- split
- tab
- window