Beispiel #1
0
 /**
  * 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);
 }
Beispiel #2
0
 /** 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(' ');
 }
Beispiel #3
0
 /**
  * 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);
 }