pub enum ClearOnExit {
Screen,
All,
Off,
}Expand description
What an interactive exit does to the screen: [cli] clear_on_exit.
The interface draws in the terminal’s ordinary buffer, so its last frame survives the process and the shell prompt lands underneath it — which reads exactly like a crash. Clearing and printing one line says which of the two happened.
Variants§
Screen
Clear the visible screen and keep the scrollback. The default: what was scrolled past is the reader’s own copy/paste history, and this program deliberately does not own it.
All
Clear the visible screen and the scrollback behind it.
Off
Clear nothing; the goodbye line is simply printed where the frame ended.
Trait Implementations§
Source§impl Clone for ClearOnExit
impl Clone for ClearOnExit
impl Copy for ClearOnExit
Source§impl Debug for ClearOnExit
impl Debug for ClearOnExit
Source§impl Default for ClearOnExit
impl Default for ClearOnExit
Source§impl<'de> Deserialize<'de> for ClearOnExit
impl<'de> Deserialize<'de> for ClearOnExit
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 ClearOnExit
Source§impl PartialEq for ClearOnExit
impl PartialEq for ClearOnExit
Source§impl Serialize for ClearOnExit
impl Serialize for ClearOnExit
impl StructuralPartialEq for ClearOnExit
Auto Trait Implementations§
impl Forget for ClearOnExit
impl Freeze for ClearOnExit
impl Move for ClearOnExit
impl RefUnwindSafe for ClearOnExit
impl Send for ClearOnExit
impl Sync for ClearOnExit
impl Unpin for ClearOnExit
impl UnsafeUnpin for ClearOnExit
impl UnwindSafe for ClearOnExit
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.