Function coded_chars::control::rendition::delete_char
source · pub fn delete_char(n: usize) -> ControlSequenceExpand description
§DCH - Delete character
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 n. 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.
The extent of the shifted part is established by SELECT EDITING EXTENT (SEE).
The effect of DCH on the start or end of a selected area, the start or end of a qualified area, or a tabulation stop in the shifted part is not defined by this Standard.
If the DEVICE COMPONENT SELECT MODE (DCSM) is set to DATA, DCH causes the contents of
the active data 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 data
component, where n equals the value of n. The resulting gap is closed by shifting the contents of the
adjacent character positions towards the active data position. At the other end of the shifted part, n
character positions are put into the erased state.