{
  "id": "terminal-dec-private-mode/8",
  "family": "terminal-dec-private-mode",
  "slug": "8",
  "title": "DECSET 8 — Auto-repeat (DECARM)",
  "summary": "CSI ? 8 h enables auto-repeat (keys repeat when held). CSI ? 8 l disables auto-repeat.",
  "kind": "control-sequence",
  "aliases": [
    "DECSET 8",
    "DECRST 8",
    "?8"
  ],
  "status": "de-facto",
  "verification": "verified",
  "tier": "B",
  "source_url": "https://invisible-island.net/xterm/ctlseqs/ctlseqs.html",
  "source_version": "xterm ctlseqs, patch #410, 2026/04/19",
  "retrieved_date": "2026-05-29",
  "see_also": [],
  "ext_type": "terminal-escape@1",
  "ext": {
    "csi_or_osc": "DEC-private-mode",
    "command_number": 8,
    "frame": {
      "introducer_7bit": "\u001b[?",
      "introducer_7bit_readable": "ESC [ ? (0x1B 0x5B 0x3F)",
      "introducer_8bit": "?",
      "introducer_8bit_readable": "0x9B ? (8-bit CSI + '?')",
      "note": "DEC private modes are CSI sequences with a leading '?' (0x3F) private-parameter prefix. Set = final byte 'h' (DECSET); reset = final byte 'l' (DECRST)."
    },
    "terminator": "none",
    "terminator_detail": {
      "note": "No string terminator: a DEC private mode is a CSI sequence ending at its final byte ('h' to set, 'l' to reset)."
    },
    "params": [
      {
        "id": "set",
        "anchor": "#set",
        "name": "Enable (DECSET)",
        "meaning": "CSI ? 8 h auto-repeat keys (DECARM)",
        "required": true,
        "byte_sequence_ST": "\u001b[?8h",
        "byte_sequence_ST_readable": "ESC [ ? 8 h",
        "subparams": []
      },
      {
        "id": "reset",
        "anchor": "#reset",
        "name": "Disable (DECRST)",
        "meaning": "CSI ? 8 l disables the mode.",
        "required": true,
        "byte_sequence_ST": "\u001b[?8l",
        "byte_sequence_ST_readable": "ESC [ ? 8 l",
        "subparams": []
      }
    ],
    "gotchas": [
      "Auto-repeat is on by default.",
      "DECARM = DEC Auto Repeat Mode.",
      "Some terminals ignore this setting."
    ],
    "v1_smoke_test": {
      "asserts": "DECSET/DECRST 8 render as byte-exact CSI ? 8 h/l sequences.",
      "behavioral_conformance": "deferred to v2."
    }
  },
  "updated": "2026-05-29"
}
