public void start(boolean keepContent) { if (keepContent) {   consoleY = console.getCursorY(); } else { consoleX = console.getCursorX(); consoleY = console.getCursorY();  setContent(""); console.setCursor( consoleX,consoleY); }
public void start() { start(false);
    public void start(boolean keepContent) {        if (keepContent) {            // we stay at the same position in X coordinate            // only Y may have changed            consoleY = console.getCursorY();        } else {            consoleX = console.getCursorX();            consoleY = console.getCursorY();            setContent("");            console.setCursor( consoleX,consoleY);//move the cursor to the start of the line.        }    }