{"version":"2.1.248","anchor":"the-claude-logs-escape-sequence-filter-is-an-allow-list","canonical_anchor":"the-claude-logs-escape-sequence-filter-is-an-allow-list","heading":"The claude logs escape-sequence filter is an allow-list","tier":"notice","area":"Elsewhere","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.248\/e\/the-claude-logs-escape-sequence-filter-is-an-allow-list","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.248","markdown":"### The `claude logs` escape-sequence filter is an allow-list\n\nLog replay keeps only escape sequences it recognises and drops everything else.\n\n**What**\n\nRather than stripping known-bad sequences, log replay keeps only sequences it recognises and drops everything else, including private-mode and parameter-prefixed ones.\n\n**Details**\n\n- Screen-erase is allowed only with parameters 0, 1 or 2; scroll-down only with a single numeric parameter; plus a small set of two-character escapes.\n- The parser also reports whether the stream ever moved the cursor to an absolute position, which is what triggers the trailing reposition.\n- Unconditional; the reposition only applies when output is a terminal.\n\n**Evidence**\n\n`cursorAddressed`\n\n- Area: Elsewhere\n- Names: `claude logs`\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5"}