pub struct PtySubmitContract {
pub submit_joins_paste_frame: bool,
pub paste_needs_typed_request: bool,
pub submit_line_settle_ms_per_line: u64,
pub submit_retry_delay_ms: Option<u64>,
pub submit_retry_budget_ms: Option<u64>,
pub draft_paste_ready_timeout_ms: Option<u64>,
pub windows_shift_enter: Option<ModifiedEnterEncoding>,
pub ctrl_enter: Option<ModifiedEnterEncoding>,
pub windows_paste_newline: Option<WindowsPasteNewline>,
}Expand description
Per-agent PTY submit policy. The shared byte writer reads the flags; it does not branch on agent id.
Fields§
§submit_joins_paste_frame: bool§paste_needs_typed_request: bool§submit_line_settle_ms_per_line: u64§submit_retry_delay_ms: Option<u64>§submit_retry_budget_ms: Option<u64>§draft_paste_ready_timeout_ms: Option<u64>§windows_shift_enter: Option<ModifiedEnterEncoding>Shift+Enter name. The chord gate is encode_pty_shortcut.
shift_enter_sequence is the raw literal: AltEnter is \x1b\r
and CsiU is \x1b[13;2u, the same bytes as a csi-u Windows
paste newline. prepare_agent_prompt does not append this chord.
ctrl_enter: Option<ModifiedEnterEncoding>Ctrl+Enter name. The chord gate is encode_pty_shortcut.
ctrl_enter_sequence is the raw literal \x1b[13;5u.
prepare_agent_prompt does not send this chord.
windows_paste_newline: Option<WindowsPasteNewline>Windows input-record newline. On Windows the paste writer emits it and does not wrap bracketed paste. Other platforms stay bracketed.
Trait Implementations§
Source§impl Clone for PtySubmitContract
impl Clone for PtySubmitContract
impl Copy for PtySubmitContract
Source§impl Debug for PtySubmitContract
impl Debug for PtySubmitContract
Source§impl Default for PtySubmitContract
impl Default for PtySubmitContract
Source§impl<'de> Deserialize<'de> for PtySubmitContract
impl<'de> Deserialize<'de> for PtySubmitContract
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PtySubmitContract
Source§impl PartialEq for PtySubmitContract
impl PartialEq for PtySubmitContract
Source§impl Serialize for PtySubmitContract
impl Serialize for PtySubmitContract
impl StructuralPartialEq for PtySubmitContract
Auto Trait Implementations§
impl Forget for PtySubmitContract
impl Freeze for PtySubmitContract
impl Move for PtySubmitContract
impl RefUnwindSafe for PtySubmitContract
impl Send for PtySubmitContract
impl Sync for PtySubmitContract
impl Unpin for PtySubmitContract
impl UnsafeUnpin for PtySubmitContract
impl UnwindSafe for PtySubmitContract
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more