/** * Draws a string on the screen at a particular position * * @param x 0-indexed column number of where to put the first character in the string * @param y 0-indexed row number of where to put the first character in the string * @param string Text to put on the screen * @param foregroundColor What color to use for the text * @param backgroundColor What color to use for the background * @param styles Additional styles to apply to the text */ public void putString( int x, int y, String string, Terminal.Color foregroundColor, Terminal.Color backgroundColor, Set<ScreenCharacterStyle> styles) { string = tabBehaviour.replaceTabs(string, x); for (int i = 0; i < string.length(); i++) putCharacter( x + i, y, new ScreenCharacter(string.charAt(i), foregroundColor, backgroundColor, styles)); }