public ConsoleModel() {
		scrollPane = new JScrollPane(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
		textPane = new JTextPane();
		textPane.addKeyListener(this);
		textPane.addFocusListener(this);
		scrollPane.setViewportView(textPane);
		document = textPane.getDocument();
		lineSeparator = System.getProperty("line.separator");
		outputAttributes = new SimpleAttributeSet();
		inputAttributes = new SimpleAttributeSet();
		errorAttributes = new SimpleAttributeSet();
		buffer = new CharacterQueue();
		inputLock = new Object();
		outputLock = new Object();
		base = 0;
	}