executeDeccolm
Executes DECCOLM (CSI ? 3 h / CSI ? 3 l) as a core-owned macro command.
Valid widths are 80 and 132; all other values are ignored.
Sequence:
Resize both buffers to
newWidth × currentHeightDestructively clear the active display and its history
Home the active cursor to absolute
(0, 0)regardless of DECOMReset active scroll margins to the full viewport
Reset active left/right margins to the full width
Reset tab stops to the default 8-column rhythm for the new width
Cancel pending wrap
Preserve both DECSC saved-cursor slots unchanged
When the alternate screen is active, DECCOLM follows the xterm-style policy used by resize: the alternate screen is wiped at the new width while the primary screen is reflowed in the background.
Parameters
The target width, either 80 or 132 columns.