            cursorRight() {
                    if (this.cursorPosition < this.input.length) {
                        this.cursorPosition += 1;
                        this.xterm.write("\x1b[C");
                    }
                }

                cursorLeft() {
                    if (this.cursorPosition > 0) {
                        this.cursorPosition -= 1;
                        this.xterm.write("\x1b[D");
                    }
                }

                cursorHome(updatePosition) {
    