private void displayCommand(String command)
	{
		String data = textArea.getText();
				
		while (data.endsWith("\n")) 
			data = data.substring(0, data.length()-1);
		int lastIndex = lastCommandOffset = data.lastIndexOf("\n");
		lastCommandOffset++;
		data = data.substring(0,lastIndex+1) + command;
		textArea.setText(data);
	    textArea.append("\n");
	    textArea.setCaretPosition(textArea.getDocument().getLength());
	}