private void setConsoleCaretPosition() {
        int caretLocation = inputControl.getInputRangeStart();
        if (!ignoreInput) {
            if (caretLocation > -1)
                consolePane.setCaretPosition(caretLocation);
            else
                consolePane.setCaretPosition(consoleStyledDocument.getLength());

            if (inputCarryOver && inputControl.hasStoredInput())
                inputControl.restoreInput();

            if (alwaysKeepScrollBarMaxed || !alwaysKeepScrollBarMaxed && isScrollBarAtMax)
                setScrollBarMax();
        }
        else {
            consolePane.setCaretPosition(0);
        }

    }