                if (this.cursorPosition > 0) {
                        this.xterm.write("\x1b[" + this.cursorPosition + "D");
                        if (updatePosition) {
                            this.cursorPosition = 0;
                        }
                    }
                }

                cursorEnd() {
                    if (this.cursorPosition < this.input.length) {
                        this.xterm.write(
                            "\x1b[" +
                                (this.input