pub struct PtyModes { /* private fields */ }
Expand description
Encodes modes for Pty allocation requests. The modes documented in https://tools.ietf.org/html/rfc4250#section-4.5 are supported.
Implementations§
source§impl PtyModes
impl PtyModes
sourcepub fn new() -> Self
pub fn new() -> Self
Construct a PtyModes instance so that you can specify values for various modes
sourcepub fn set_u32<O: Into<ExtensiblePtyModeOpcode>>(&mut self, option: O, value: u32)
pub fn set_u32<O: Into<ExtensiblePtyModeOpcode>>(&mut self, option: O, value: u32)
Set a mode to an arbitrary u32 value
sourcepub fn set_boolean<O: Into<ExtensiblePtyModeOpcode>>(
&mut self,
option: O,
value: bool
)
pub fn set_boolean<O: Into<ExtensiblePtyModeOpcode>>(
&mut self,
option: O,
value: bool
)
Set a mode to a boolean value
sourcepub fn set_character<O: Into<ExtensiblePtyModeOpcode>>(
&mut self,
option: O,
c: Option<char>
)
pub fn set_character<O: Into<ExtensiblePtyModeOpcode>>(
&mut self,
option: O,
c: Option<char>
)
Set a mode to a character value. If the character is None it is set to 255 to indicate that it is disabled. While this interface and the protocol accept unicode characters of up to 32 bits in width, these options likely only work for characters in the 7-bit ascii range.