{
  "id": "terminal-dec-private-mode/95",
  "family": "terminal-dec-private-mode",
  "slug": "95",
  "title": "DECSET 95 — Do not clear screen on DECSET 1049 (xterm)",
  "summary": "CSI ? 95 h prevents clearing the alternate screen on 1049. CSI ? 95 l clears it (default).",
  "kind": "control-sequence",
  "aliases": [
    "DECSET 95",
    "DECRST 95",
    "?95"
  ],
  "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": 95,
    "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 ? 95 h no clear on 1049 (xterm)",
        "required": true,
        "byte_sequence_ST": "\u001b[?95h",
        "byte_sequence_ST_readable": "ESC [ ? 95 h",
        "subparams": []
      },
      {
        "id": "reset",
        "anchor": "#reset",
        "name": "Disable (DECRST)",
        "meaning": "CSI ? 95 l disables the mode.",
        "required": true,
        "byte_sequence_ST": "\u001b[?95l",
        "byte_sequence_ST_readable": "ESC [ ? 95 l",
        "subparams": []
      }
    ],
    "gotchas": [
      "xterm-specific extension.",
      "When enabled, entering alt screen (1049) doesn't clear it."
    ],
    "v1_smoke_test": {
      "asserts": "DECSET/DECRST 95 render as byte-exact CSI ? 95 h/l sequences.",
      "behavioral_conformance": "deferred to v2."
    }
  },
  "updated": "2026-05-29"
}
