(nextCols: number, nextRows: number)
| 81 | }; |
| 82 | |
| 83 | const resize = async (nextCols: number, nextRows: number): Promise<void> => { |
| 84 | cols = nextCols; |
| 85 | rows = nextRows; |
| 86 | pending = pending.then(() => { |
| 87 | term.resize(nextCols, nextRows); |
| 88 | }); |
| 89 | await pending; |
| 90 | }; |
| 91 | |
| 92 | const snapshot = (): TerminalScreenSnapshot => { |
| 93 | const lines: string[] = []; |