Struct text_terminal::AsciiControlCodes
source · pub struct AsciiControlCodes;
Expand description
The set of ASCII values that are non-printable characters and require special handling by a terminal emulator.
Implementations§
source§impl AsciiControlCodes
impl AsciiControlCodes
sourcepub const Backspace: u8 = 8u8
pub const Backspace: u8 = 8u8
(BS) Moves the cursor backwards by one unit/character, but does not remove it. Note that this is different than the typical behavior of the “Backspace” key on a keyboard.
Ctrl + H
, or '\b'
.
sourcepub const LineFeed: u8 = 10u8
pub const LineFeed: u8 = 10u8
(LF) Moves the cursor to the next line, i.e., Line feed, or new line / newline.
Ctrl + J
, or '\n'
.
sourcepub const VerticalTab: u8 = 11u8
pub const VerticalTab: u8 = 11u8
(VT) Inserts a vertical tab.
Ctrl + K
, or '\v'
.
sourcepub const PageBreak: u8 = 12u8
pub const PageBreak: u8 = 12u8
(FF) Inserts a page break (form feed) to move the cursor/prompt to the beginning of a new page (screen).
Ctrl + L
, or '\f'
.
sourcepub const CarriageReturn: u8 = 13u8
pub const CarriageReturn: u8 = 13u8
(CR) Moves the cursor to the beginning of the line, i.e., carriage return.
Ctrl + M
, or '\r'
.
sourcepub const BackwardsDelete: u8 = 127u8
pub const BackwardsDelete: u8 = 127u8
(DEL) Backwards-deletes the character before (to the left of) the cursor. This is equivalent to what the Backspace key on a keyboard typically does.
DEL
.