pub enum WindowsPasteNewline {
AltEnter,
CsiU,
}Expand description
How a Windows input-record paste names a newline.
On Windows, prepare_agent_prompt turns each CR, LF, and CRLF into one
sequence and does not bracket the body. AltEnter is \x1b\r. CsiU
is \x1b[13;2u. Other platforms keep the bracketed paste.
Variants§
Trait Implementations§
Source§impl Clone for WindowsPasteNewline
impl Clone for WindowsPasteNewline
impl Copy for WindowsPasteNewline
Source§impl Debug for WindowsPasteNewline
impl Debug for WindowsPasteNewline
Source§impl<'de> Deserialize<'de> for WindowsPasteNewline
impl<'de> Deserialize<'de> for WindowsPasteNewline
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 WindowsPasteNewline
Source§impl PartialEq for WindowsPasteNewline
impl PartialEq for WindowsPasteNewline
Source§impl Serialize for WindowsPasteNewline
impl Serialize for WindowsPasteNewline
impl StructuralPartialEq for WindowsPasteNewline
Auto Trait Implementations§
impl Forget for WindowsPasteNewline
impl Freeze for WindowsPasteNewline
impl Move for WindowsPasteNewline
impl RefUnwindSafe for WindowsPasteNewline
impl Send for WindowsPasteNewline
impl Sync for WindowsPasteNewline
impl Unpin for WindowsPasteNewline
impl UnsafeUnpin for WindowsPasteNewline
impl UnwindSafe for WindowsPasteNewline
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