MCPcopy Index your code
hub / github.com/JavaCS3/xterm-player / NullFrame

Class NullFrame

src/Frame.ts:14–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12}
13
14class NullFrame implements IFrame {
15 public prev: IFrame | null = null
16 constructor(
17 public readonly startTime: number = 0,
18 public readonly endTime: number = 0
19 ) { }
20 duration(): number { return this.endTime - this.startTime }
21 data(endTime: number, startTime?: number): string { return '' }
22 snapshot(): string {
23 if (this.prev) {
24 return this.prev.snapshot()
25 }
26 return ''
27 }
28}
29
30export type FrameSnapshotFn = (s: string) => string
31export const DEFAULT_FRAME_SNAPSHOT_FN = (s: string) => s

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected