(frame: Frame)
| 90 | } |
| 91 | |
| 92 | function snapshotFrame(frame: Frame): FrameSnapshot { |
| 93 | return { |
| 94 | height: frame.screen.height, |
| 95 | width: frame.screen.width, |
| 96 | cursor: { x: frame.cursor.x, y: frame.cursor.y }, |
| 97 | viewportHeight: frame.viewport.height, |
| 98 | } |
| 99 | } |
| 100 | |
| 101 | export function serializeOptimizedToAnsiForTesting(diff: Diff): string { |
| 102 | let buf = '' |