import { useContext, useEffect, useRef } from 'react' * Declaratively set the tab-status indicator (OSC 21337). * Emits a colored dot + short status text to the tab sidebar. Terminals * that don't ...
// sliceAnsi may include a boundary-spanning wide char (e.g. CJK at position // end-1 with width 2 overshoots by 1). Retry with a tighter bound once.