We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf1967f commit ced78a0Copy full SHA for ced78a0
1 file changed
lib/terminal.ts
@@ -1759,8 +1759,9 @@ export class Terminal implements ITerminalCore {
1759
1760
// Read all pending responses from the WASM terminal
1761
// Multiple responses can be queued if a single write() contained multiple queries
1762
- let response: string | null;
1763
- while ((response = this.wasmTerm.readResponse()) !== null) {
+ while (true) {
+ const response = this.wasmTerm.readResponse();
1764
+ if (response === null) break;
1765
// Send response back to the PTY via onData
1766
// This is the same path as user keyboard input
1767
this.dataEmitter.fire(response);
0 commit comments