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 A Command that clears the terminal's text, equivalent to the command-line `clear`.
      Returns:
      A Command that clears the terminal's text, equivalent to the command-line `clear`
    • toString

      public String toString()
      Overrides:
      toString in class Object