public void setInputStyle(int style) {
		if (getLength() != 0) {
			throw new ErrorException("Console styles and colors cannot be changed after I/O has started.");
		}
		inputAttributes.addAttribute(StyleConstants.Bold, new Boolean((style & Font.BOLD) != 0));
		inputAttributes.addAttribute(StyleConstants.Italic, new Boolean((style & Font.ITALIC) != 0));
	}