#[repr(C)]pub struct TerminalAttributes {
pub flags: TerminalFlags,
}Expand description
Terminal line discipline settings, exchanged by
GET_TERMINAL_ATTRIBUTES and SET_TERMINAL_ATTRIBUTES.
To change one setting, read the current attributes, update them and
write them back, as with tcgetattr and tcsetattr.
Fields§
§flags: TerminalFlagsImplementations§
Source§impl TerminalAttributes
impl TerminalAttributes
Sourcepub const INTERACTIVE: Self
pub const INTERACTIVE: Self
Canonical input with echo: the usual interactive terminal.
pub const fn new(flags: TerminalFlags) -> Self
pub const fn is_echo_enabled(&self) -> bool
pub const fn is_canonical(&self) -> bool
Sourcepub const fn with_canonical(self, enabled: bool) -> Self
pub const fn with_canonical(self, enabled: bool) -> Self
Returns a copy with canonical input turned on or off.
Sourcepub const fn has_only_known_flags(&self) -> bool
pub const fn has_only_known_flags(&self) -> bool
Whether every set flag is one defined by this version of the contract.
Trait Implementations§
Source§impl Clone for TerminalAttributes
impl Clone for TerminalAttributes
Source§fn clone(&self) -> TerminalAttributes
fn clone(&self) -> TerminalAttributes
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TerminalAttributes
impl Debug for TerminalAttributes
Source§impl Default for TerminalAttributes
impl Default for TerminalAttributes
Source§impl PartialEq for TerminalAttributes
impl PartialEq for TerminalAttributes
Source§fn eq(&self, other: &TerminalAttributes) -> bool
fn eq(&self, other: &TerminalAttributes) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for TerminalAttributes
impl Eq for TerminalAttributes
impl PlainData for TerminalAttributes
impl StructuralPartialEq for TerminalAttributes
Auto Trait Implementations§
impl Freeze for TerminalAttributes
impl RefUnwindSafe for TerminalAttributes
impl Send for TerminalAttributes
impl Sync for TerminalAttributes
impl Unpin for TerminalAttributes
impl UnsafeUnpin for TerminalAttributes
impl UnwindSafe for TerminalAttributes
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