Skip to content

TerminalOutputTiming

One burst of output: writes that arrive with less than quietMs between them. All times are performance.now() values in this window’s clock.

readonly desynchronized: boolean

The canvas presents without waiting for the browser’s compositor, as diagnostics.desynchronized.


readonly optional drawnAt?: number

When the first frame holding the last output was drawn: WebGPU commands submitted, WebGL or canvas draw calls issued, or DOM rows written. In a worker terminal, when the frame’s notice reached this window. Missing when no frame drew it, such as output that changed nothing visible.


readonly firstOutputAt: number


readonly hidden: boolean

No frame drew this output because the terminal was hidden when it ended.


readonly optional inputAt?: number

The last typed, pasted, mouse or sendInput input within inputWindowMs before this output began.


readonly lastOutputAt: number


readonly presentation: NonNullable<TerminalPresentation | undefined>


readonly optional presentedAt?: number

When the browser finished the page update that carries the drawn frame: the first task after that update. The display shows it at its next refresh. A desynchronized canvas can appear before this. Missing in worker terminals and when drawnAt is missing.


readonly rendererBackend: "webgpu" | "dom" | "canvas2d" | "webgl2" | undefined


readonly writes: number