                } else if (type === "stdout") {
                        this.standardIO.stdout(event.data.stdout);
                    } else if (type === "stderr") {
                        this.standardIO.stderr(event.data.stderr);
                    } else if (type === "stdin") {
                        // Leave it to the terminal to decide whether to chunk it into lines
                        // or send characters depending on the use case.
                        this.stdinbuffer = event.data.buffer;