  this.cursorLeft();
                    this.clearLine();
                    if (trailing.length !== 0) {
                        this.xterm.write(trailing);
                        this.xterm.write("\x1b[" + trailing.length + "D");
                    }
                    this.updateHistory();
                }

                deleteAtCursor() {
                    if (this.cursorPosition < this.input.length) {
                        const trailing = this.input.slice(
                            this.