add wezterm cli get-text command

closes: https://github.com/wez/wezterm/pull/2729
This commit is contained in:
Wez Furlong committed 2023-02-05 09:05:48 -07:00
1 parent 9e3a5ba8fa
commit 1609fd386b
10 files changed
+208 -42

No files matched your search

+15 -1
View File
@@ -417,7 +417,7 @@ macro_rules! pdu {
/// The overall version of the codec.
/// This must be bumped when backwards incompatible changes
/// are made to the types and protocol.
pub const CODEC_VERSION: usize = 31;
pub const CODEC_VERSION: usize = 32;
// Defines the Pdu enum.
// Each struct has an explicit identifying number.
@@ -466,6 +466,8 @@ pdu! {
MovePaneToNewTab: 48,
MovePaneToNewTabResponse: 49,
ActivatePaneDirection: 50,
GetPaneRenderableDimensions: 51,
GetPaneRenderableDimensionsResponse: 52,
}
impl Pdu {
@@ -780,6 +782,18 @@ pub struct GetPaneRenderChanges {
pub pane_id: PaneId,
}
#[derive(Deserialize, Serialize, PartialEq, Debug)]
pub struct GetPaneRenderableDimensions {
pub pane_id: PaneId,
}
#[derive(Deserialize, Serialize, PartialEq, Debug)]
pub struct GetPaneRenderableDimensionsResponse {
pub pane_id: PaneId,
pub cursor_position: StableCursorPosition,
pub dimensions: RenderableDimensions,
}
#[derive(Deserialize, Serialize, PartialEq, Debug)]
pub struct LivenessResponse {
pub pane_id: PaneId,