[][src]Struct file_descriptors::terminal::CanonicalSettings

pub struct CanonicalSettings {
    pub convert_uppercase_to_lowercase: bool,
    pub echo_erase: bool,
    pub echo_new_line: bool,
    pub external_processing: bool,
    pub print_before_erase: bool,
    pub echo_kill_character: CanonicalEchoKillCharacter,
}

Abstracts the canonical settings of a terminal.

Fields

convert_uppercase_to_lowercase: bool

If set, the terminal is assumed to be uppercase only, and all input is converted to lowercase.

To input an uppercase character, precede it with a backslash. Similarly, an uppercase character is output by the system by being preceded by a backslash.

This option flag is obsolete today, since most, if not all, uppercase-only terminals have disappeared.

Equivalent to the XCASE flag.

echo_erase: bool

If set then the ERASE character erases the last character in the current line from the display.

This is usually done in the terminal driver by writing the three-character sequence 'backspace, space, backspace'.

If the word erase, WERASE, character is supported then this setting causes the previous word to be erased using one or more of the same three-character sequence when WERASE is received.

This occurs irrespective of whether the terminal has been set to echo its input.

Equivalent to the ECHOE flag.

echo_new_line: bool

If set then the new line, NL, character is echoed.

This occurs irrespective of whether the terminal has been set to echo its input.

Equivalent to the ECHONL flag.

external_processing: bool

If set, canonical character processing is performed external to the operating system.

This can be the case if the serial communication peripheral card can offload the host processor by doing some of the line discipline processing.

Equivalent to the EXTPROC flag.

print_before_erase: bool

If set then the ERASE character (and WERASE character, if supported) will cause all the characters being erased to be printed as they are erased.

This is often useful on a hard-copy terminal to see exactly which characters are being deleted.

Setting this flag will force echo to be on, overriding Echo::Off.

Equivalent to the ECHOPRT flag.

echo_kill_character: CanonicalEchoKillCharacter

Different choices for echoing the KILL character.

Trait Implementations

impl Eq for CanonicalSettings[src]

impl Clone for CanonicalSettings[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for CanonicalSettings[src]

impl PartialOrd<CanonicalSettings> for CanonicalSettings[src]

impl PartialEq<CanonicalSettings> for CanonicalSettings[src]

impl Ord for CanonicalSettings[src]

fn max(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the minimum of two values. Read more

impl Hash for CanonicalSettings[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Debug for CanonicalSettings[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]