Since: Version 20210404-112810-b63a949d
The feature described in this section requires version 20210404-112810-b63a949d of wezterm, or a more recent version.
Returns the text that is currently selected within the specified pane within the specified window. This is the same text that would be copied to the clipboard if the CopyTo action were to be performed.
Why isn't this simply a method of the
pane object? The reason is that the
selection is an attribute of the containing window, and a given pane can
potentially be mapped into multiple windows.
This example logs the current selection when a CTRL+SHIFT+E is pressed: