Class Command

java.lang.Object
com.diogonunes.jcolor.Command

public class Command extends Object
Abstracts ANSI codes with intuitive names. It maps a command (e.g. CLEAR_SCREEN) with a code.
  • Method Details

    • CLEAR_SCREEN

      public static Command CLEAR_SCREEN()
      Returns:
      Clears the terminal's text, e.g. just like the command-line `clear`.
    • toString

      public String toString()
      Overrides:
      toString in class Object