* Wait for all pending writes to complete. Viewport and scroll buffer will be updated.
()
| 129 | * Wait for all pending writes to complete. Viewport and scroll buffer will be updated. |
| 130 | */ |
| 131 | async flush(): Promise<void> { |
| 132 | // Write an empty string to ensure all previous writes are flushed |
| 133 | return new Promise<void>((resolve) => { |
| 134 | this.xterm.write("", () => resolve()); |
| 135 | }); |
| 136 | } |
| 137 | |
| 138 | /** |
| 139 | * Simulate the user scrolling the terminal window (negative = up into scrollback). |
no test coverage detected