captureNativeCellDelta method
Captures the renderer's most recent changed-cell delta, if available.
Implementation
@override
TerminalNativeCellDeltaFrame? captureNativeCellDelta() {
final frame = _captureNativeFrame();
if (frame == null) return null;
final cached = _nativeCellDeltaCache;
if (cached != null) return cached;
final delta = TerminalNativeCellDeltaFrame.between(
_previousNativeFrameForCellDelta,
frame,
);
_previousNativeFrameForCellDelta = frame;
return _nativeCellDeltaCache = delta;
}