^[control-codes
live in libghostty-vt

ANSI modes

FEAM Format Effector Action Mode

View as Markdown

Whether formatting functions are performed or only stored.

CSI 13 h/l
ECMA-48
§7.2.5 FEAM – Format Effector Action Mode, p. 22
DEC STD 070
§5.10.1.3 Modes That Cannot Be Changed, p. 5-134

Mode 13 decides whether the formatting functions, ECMA-48’s formator functions, are performed when they arrive or only stored, to be performed by another device later. They include BS, CR, HT, SGR and the cursor positioning functions.

StateECMA-48 calls itMeaning
Reset, CSI 13 lEXECUTEthey are performed, and may be stored as well
Set, CSI 13 hSTOREthey are stored but not performed

DEC STD 070 §5.10.1.3, p. 5-134 lists it among the X3.64 modes a DEC terminal may treat as fixed, as reset. The VT510 manual’s table of modes for DECRPM marks it as always reset.

xterm ignores CSI 13 h and CSI 13 l (ansi_modes handles only modes 2, 4, 12 and 20), and DECRQM reports the mode as permanently reset, 4 (do_ansi_rqm). libghostty-vt ignores it too, but does not recognize the number, so it answers DECRQM with 0. Both DECRQM cases are known differences.

Support

TerminalVersionSupportNotes
VT220manual, 2nd ed., 1984Nonot in the manual, whose table of ANSI modes has only KAM, IRM, SRM and LNM
VT510manual, 1st ed., 1993Nolisted as permanently reset
xtermpatch 412, xterm-411aNoignored; DECRQM reports it permanently reset, 4
libghostty-vt0f171f6Noignored; DECRQM answers 0 (FEAM-1, FEAM-2)
ConEmubuild 230724, its documentationNonot in its ANSI escape codes

Validation

FEAM-1: Reported as permanently reset

\e[13$p
|_____|
reply \e[13;4$y

FEAM-2: Even after it is set

\e[13h
\e[13$p
|_____|
reply \e[13;4$y

FEAM-3: CR is still performed

\e[13h     # ignored
AB
\r
C
|CB___|
cursor 1,2
Every example on these pages runs in your browser, in libghostty-vt compiled to WebAssembly.