pub enum Edit {
    DeleteCharacter(u32),
    DeleteLine(u32),
    EraseCharacter(u32),
    EraseInLine(EraseInLine),
    InsertCharacter(u32),
    InsertLine(u32),
    ScrollDown(u32),
    ScrollUp(u32),
    EraseInDisplay(EraseInDisplay),
    Repeat(u32),
}

Variants

DeleteCharacter(u32)

DCH - DELETE CHARACTER Deletes Ps characters from the cursor position to the right. The default value of Ps is 1. If the DEVICE COMPONENT SELECT MODE (DCSM) is set to PRESENTATION, DCH causes the contents of the active presentation position and, depending on the setting of the CHARACTER EDITING MODE (HEM), the contents of the n-1 preceding or following character positions to be removed from the presentation component, where n equals the value of Pn. The resulting gap is closed by shifting the contents of the adjacent character positions towards the active presentation position. At the other end of the shifted part, n character positions are put into the erased state.

DeleteLine(u32)

DL - DELETE LINE If the DEVICE COMPONENT SELECT MODE (DCSM) is set to PRESENTATION, DL causes the contents of the active line (the line that contains the active presentation position) and, depending on the setting of the LINE EDITING MODE (VEM), the contents of the n-1 preceding or following lines to be removed from the presentation component, where n equals the value of Pn. The resulting gap is closed by shifting the contents of a number of adjacent lines towards the active line. At the other end of the shifted part, n lines are put into the erased state. The active presentation position is moved to the line home position in the active line. The line home position is established by the parameter value of SET LINE HOME (SLH). If the TABULATION STOP MODE (TSM) is set to SINGLE, character tabulation stops are cleared in the lines that are put into the erased state. The extent of the shifted part is established by SELECT EDITING EXTENT (SEE). Any occurrences of the start or end of a selected area, the start or end of a qualified area, or a tabulation stop in the shifted part, are also shifted.

EraseCharacter(u32)

ECH - ERASE CHARACTER If the DEVICE COMPONENT SELECT MODE (DCSM) is set to PRESENTATION, ECH causes the active presentation position and the n-1 following character positions in the presentation component to be put into the erased state, where n equals the value of Pn.

EraseInLine(EraseInLine)

EL - ERASE IN LINE If the DEVICE COMPONENT SELECT MODE (DCSM) is set to PRESENTATION, EL causes some or all character positions of the active line (the line which contains the active presentation position in the presentation component) to be put into the erased state, depending on the parameter values

InsertCharacter(u32)

ICH - INSERT CHARACTER If the DEVICE COMPONENT SELECT MODE (DCSM) is set to PRESENTATION, ICH is used to prepare the insertion of n characters, by putting into the erased state the active presentation position and, depending on the setting of the CHARACTER EDITING MODE (HEM), the n-1 preceding or following character positions in the presentation component, where n equals the value of Pn. The previous contents of the active presentation position and an adjacent string of character positions are shifted away from the active presentation position. The contents of n character positions at the other end of the shifted part are removed. The active presentation position is moved to the line home position in the active line. The line home position is established by the parameter value of SET LINE HOME (SLH).

InsertLine(u32)

IL - INSERT LINE If the DEVICE COMPONENT SELECT MODE (DCSM) is set to PRESENTATION, IL is used to prepare the insertion of n lines, by putting into the erased state in the presentation component the active line (the line that contains the active presentation position) and, depending on the setting of the LINE EDITING MODE (VEM), the n-1 preceding or following lines, where n equals the value of Pn. The previous contents of the active line and of adjacent lines are shifted away from the active line. The contents of n lines at the other end of the shifted part are removed. The active presentation position is moved to the line home position in the active line. The line home position is established by the parameter value of SET LINE HOME (SLH).

ScrollDown(u32)

SD - SCROLL DOWN SD causes the data in the presentation component to be moved by n line positions if the line orientation is horizontal, or by n character positions if the line orientation is vertical, such that the data appear to move down; where n equals the value of Pn. The active presentation position is not affected by this control function.

Also known as Pan Up in DEC: https://vt100.net/docs/vt510-rm/SD.html

ScrollUp(u32)

SU - SCROLL UP SU causes the data in the presentation component to be moved by n line positions if the line orientation is horizontal, or by n character positions if the line orientation is vertical, such that the data appear to move up; where n equals the value of Pn. The active presentation position is not affected by this control function.

EraseInDisplay(EraseInDisplay)

ED - ERASE IN PAGE (XTerm calls this Erase in Display)

Repeat(u32)

REP - Repeat the preceding character n times

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The resulting type after obtaining ownership.

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

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

Converts the given value to a String. 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.