DECRLM—Cursor Right to Left Mode
This control function starts/stops the right-to-left cursor direction.
Format
CSI 9/11 |
? 3/15 |
3 3/3 |
4 4/4 |
h 6/8 |
Set. |
CSI 9/11 |
? 3/15 |
3 3/3 |
4 4/4 |
l 6/12 |
Reset. |
Description
DECRLM state is common to both the main display and the status line display.
The status line is effected only when you set it to Host Writable Status Display
in the Display Set-Up screen. DECRLM does not affect column numbering within
the line. The first line column is always at the left side of the display window.
The last column is always at the right side of the display window.
The next character position is defined as the current cursor position minus 1.
If the terminal is in Replace mode (IRM is reset), then:
- The new character is inserted in the current cursor position.
- The cursor moves to the next character position.
If terminal is in Insert mode (IRM is set), then:
- All characters from the current cursor position to the left margin inclusively are shifted one position towards the left.
- The character previously displayed at the left margin disappears.
- The new character is inserted in the current cursor position.
- The cursor moves to the next character position.
The following escape sequences are not affected by the DECRLM setting:
ICH - Insert Character DCH - Delete Character ED - Erase in Display EL - Erase in Line |
DECSED - Selective Erase in Display DECSEL - Selective Erase in Line ECH - Erase Character |
The following escape sequences are not affected by the DECRLM setting:
CUP - Cursor Position HVP - Horizontal and Vertical Position CUF - Cursor Forward CUB - Cursor Backward |
Notes on DECRLM
- The BS control character increases the current cursor position by one, thus moving the cursor on the screen one position to the right.
- When new line mode (LNM) is set and the terminal receives one of the control codes LF, VT, or FF, the cursor moves to the last right-most column of the next line.
- When control code CR is received, the cursor moves to the last right-most column of the current line.
- When control code SUB is received, a number of cancellation activities result within the terminal and the terminal displays an error character, according to the current DECRLM setting.
- When control code NEL is received, the cursor moves to the last right-most column of the next line. If the cursor is at the bottom margin, then the page scrolls up.
- If auto-wrap is enabled (DECAWM is set), then a graphic character received when the cursor is at column number one appears at the right margin column of the next line. If the cursor is at the end of the scrolling region, then any text already on the page scrolls up.