Function coded_chars::control::rendition::insert_char
source · pub fn insert_char(n: usize) -> ControlSequenceExpand description
§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 n. 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).
The extent of the shifted part is established by SELECT EDITING EXTENT (SEE).
The effect of ICH 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, ICH is used to prepare the
insertion of n characters, by putting into the erased state the active data position and, depending on the
setting of the CHARACTER EDITING MODE (HEM), the n-1 preceding or following character
positions in the data component, where n equals the value of n. The previous contents of the active data
position and an adjacent string of character positions are shifted away from the active data position. The
contents of n character positions at the other end of the shifted part are removed. 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).