ode];
                    if (charCode == 10) {
                        array = [13, 10]; // Replace \n with \r\n
                    }
                    this.xterm.write(new Uint8Array(array));
                }
            }

            class BufferQueue {
                constructor(xterm) {
                    this.buffer = [];
                }

                isEmpty() {
                    return this.buffer.length == 0;
                }

                lastLineIsIncomplete() {
                