Underline Mode ON (SGR) CSI 4 m
Underline Double Mode CSI 21 m
Underline Mode OFF CSI 24 m
Data Structure ASCII CSI "4" "m" [A] underline mode ON ➊
hex. 9B 34 6D
dec. 155 52 109
ASCII CSI "2" "1" "m" [A] underline double mode
hex. 9B 32 31 6D
dec. 155 50 49 109
ASCII CSI "2" "4" "m" [A] underline mode OFF
hex. 9B 32 34 6D
dec. 155 50 52 109
Description
➊ All printed characters including spaces are automatically unerlined. Spaces between
tab codes (HT) are underlined.
The sequence CSI 0 m resets all CSI...m-sequences!
A maximum of 16 CSI...m -sequences can be joined in one sequence, e.g. as follows:
CSI n
1
;n
2
;n
x
m
Example 10 REM underline mode
20 LPRINT "the most ";
30 LPRINT CHR$(27);"[4m";
40 LPRINT "important";
50 LPRINT CHR$(27);"[24m";
60 LPRINT " word must be underlined."
70 END
Character Styling 39