public void refreshCurrentLine(ScrollableShellConsole console, String currentPrompt, PrintStream out) {
public void refreshCurrentLine(String currentPrompt) {
    public void refreshCurrentLine(ScrollableShellConsole console,     		String currentPrompt, PrintStream out) {        try {        	int x = consoleX;        	int width = console.getWidth();        	int nbLines = ((x + maxLength) / width);        	        	if(((x + maxLength) % width) != 0)        		nbLines++;        	        	// if the line has not been shortened (delete, backspace...)        	if(!shortened)            	// scroll up the buffer if necessary, and get the new y        		consoleY = console.ensureFreeLines(consoleY, nbLines, 0);        		        	for(int i = 0 ; i < nbLines ; i++)        		console.clearLine(consoleY + i);        	        	// print the prompt and the command line        	console.setCursor(0, consoleY);        	out.print(currentPrompt + currentLine);        	        	int posCurX = x + posOnCurrentLine;        	int posCurY = consoleY;        	if(posCurX >= width)        	{        		        		posCurY += posCurX / width;        		        		posCurX = (posCurX % width);         	}        	console.setCursor(posCurX, posCurY);        } catch (Exception e) {        }            }