/** * Write a char into the console at the current position of the cursor and the current colors. * * @param c Char to write * @see #color(int, int) * @see #cursor(int, int) */ public static void print(char c) { check(); frame.put(c); }
/** Clears the content of the console, writing spaces with current colors. */ public static void clear() { frame.cursor(0, 0); for (int i = 0; i < lines * cols; ++i) frame.put(' '); }
/** * Write a string into the console at the current position of the cursor and the current colors. * * @param s Text to write * @see #color(int, int) * @see #cursor(int, int) */ public static void print(String s) { check(); frame.put(s); }