Enum ptyprocess::ControlCode[][src]

pub enum ControlCode {
Show variants Null, StartOfHeading, StartOfText, EndOfText, EndOfTransmission, Enquiry, Acknowledge, Bell, Backspace, HorizontalTabulation, LineFeed, VerticalTabulation, FormFeed, CarriageReturn, ShiftOut, ShiftIn, DataLinkEscape, DeviceControl1, DeviceControl2, DeviceControl3, DeviceControl4, NegativeAcknowledge, SynchronousIdle, EndOfTransmissionBlock, Cancel, EndOfMedium, Substitute, Escape, FileSeparator, GroupSeparator, RecordSeparator, UnitSeparator, Space, Delete,
}
Expand description

ControlCode represents the standard ASCII control codes wiki

Variants

Null

Often used as a string terminator, especially in the programming language C.

StartOfHeading

In message transmission, delimits the start of a message header.

StartOfText

First character of message text, and may be used to terminate the message heading.

EndOfText

Often used as a “break” character (Ctrl-C) to interrupt or terminate a program or process.

EndOfTransmission

Often used on Unix to indicate end-of-file on a terminal (Ctrl-D).

Enquiry

Signal intended to trigger a response at the receiving end, to see if it is still present.

Acknowledge

Response to an Enquiry, or an indication of successful receipt of a message.

Bell

Used for a beep on systems that didn’t have a physical bell.

Backspace

Move the cursor one position leftwards. On input, this may delete the character to the left of the cursor.

HorizontalTabulation

Position to the next character tab stop.

LineFeed

On Unix, used to mark end-of-line. In DOS, Windows, and various network standards, LF is used following CR as part of the end-of-line mark.

VerticalTabulation

Position the form at the next line tab stop.

FormFeed

It appears in some common plain text files as a page break character.

CarriageReturn

Originally used to move the cursor to column zero while staying on the same line.

ShiftOut

Switch to an alternative character set.

ShiftIn

Return to regular character set after ShiftOut.

DataLinkEscape

May cause a limited number of contiguously following octets to be interpreted in some different way.

DeviceControl1

A control code which is reserved for device control.

DeviceControl2

A control code which is reserved for device control.

DeviceControl3

A control code which is reserved for device control.

DeviceControl4

A control code which is reserved for device control.

NegativeAcknowledge

In multipoint systems, the NAK is used as the not-ready reply to a poll.

SynchronousIdle

Used in synchronous transmission systems to provide a signal from which synchronous correction may be achieved.

EndOfTransmissionBlock

Indicates the end of a transmission block of data.

Cancel

Indicates that the data preceding it are in error or are to be disregarded.

EndOfMedium

May mark the end of the used portion of the physical medium.

Substitute

Sometimes used to indicate the end of file, both when typing on the terminal and in text files stored on disk.

Escape

The Esc key on the keyboard will cause this character to be sent on most systems. In systems based on ISO/IEC 2022, even if another set of C0 control codes are used, this octet is required to always represent the escape character.

FileSeparator

Can be used as delimiters to mark fields of data structures. Also it used for hierarchical levels; FS == level 4

GroupSeparator

It used for hierarchical levels; GS == level 3

RecordSeparator

It used for hierarchical levels; RS == level 2

UnitSeparator

It used for hierarchical levels; US == level 1

Space

Space is a graphic character. It causes the active position to be advanced by one character position.

Delete

Usually called backspace on modern machines, and does not correspond to the PC delete key.

Implementations

Trait Implementations

Performs the conversion.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

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

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.