Function coded_chars::control::rendition::delete_line
source · pub fn delete_line(n: usize) -> ControlSequenceExpand description
§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 n. 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.
If the DEVICE COMPONENT SELECT MODE (DCSM) is set to DATA, DL causes the contents of the
active line (the line that contains the active data 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
data component, where n equals the value of n. 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 data 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).