@jsvision/core / degradeCapsFully
Function: degradeCapsFully()
degradeCapsFully(
caps):CapabilityProfile
Defined in: host/width-probe.ts:353
Force a capability profile fully ASCII-safe: box-drawing and half-blocks off, ambiguous-wide on, so every chrome glyph maps to plain ASCII when rendered. This is the shape the host uses when JSVISION_ASCII is set. Pure.
Parameters
caps
The capability profile to degrade.
Returns
A new profile with all three glyph flags at their ASCII-safe setting.
Example
ts
import { resolveCapabilities, degradeCapsFully, serialize } from '@jsvision/core';
const caps = degradeCapsFully(resolveCapabilities().profile);
// serialize(frame, prev, { caps }) now emits ASCII box/scroll chrome.