{
  "id": "terminal-dec-private-mode/1034",
  "family": "terminal-dec-private-mode",
  "slug": "1034",
  "title": "DECSET 1034 — Interpret '8-bit' C1 controls",
  "summary": "CSI ? 1034 h enables 8-bit control characters (C1 controls like 0x80-0x9F are interpreted). CSI ? 1034 l disables it (C1 controls are ignored).",
  "kind": "control-sequence",
  "aliases": [
    "DECSET 1034",
    "DECRST 1034",
    "?1034"
  ],
  "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": 1034,
    "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 ? 1034 h 8-bit C1 control interpretation",
        "required": true,
        "byte_sequence_ST": "\u001b[?1034h",
        "byte_sequence_ST_readable": "ESC [ ? 1034 h",
        "subparams": []
      },
      {
        "id": "reset",
        "anchor": "#reset",
        "name": "Disable (DECRST)",
        "meaning": "CSI ? 1034 l disables the mode.",
        "required": true,
        "byte_sequence_ST": "\u001b[?1034l",
        "byte_sequence_ST_readable": "ESC [ ? 1034 l",
        "subparams": []
      }
    ],
    "gotchas": [
      "8-bit mode allows single-byte C1 controls (0x80-0x9F) instead of ESC + 7-bit equivalents.",
      "Default is 7-bit mode (ESC sequences).",
      "8-bit mode is rare in modern terminals."
    ],
    "v1_smoke_test": {
      "asserts": "DECSET/DECRST 1034 render as byte-exact CSI ? 1034 h/l sequences.",
      "behavioral_conformance": "deferred to v2."
    }
  },
  "updated": "2026-05-29"
}
