Class Ansi


  • @Deprecated
    public class Ansi
    extends java.lang.Object
    Deprecated.
    Help class for ANSI console escape sequences
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String BKG_BLACK
      Deprecated.
       
      static java.lang.String BKG_BLUE
      Deprecated.
       
      static java.lang.String BKG_CYAN
      Deprecated.
       
      static java.lang.String BKG_GREEN
      Deprecated.
       
      static java.lang.String BKG_MAGENTA
      Deprecated.
       
      static java.lang.String BKG_RED
      Deprecated.
       
      static java.lang.String BKG_WHITE
      Deprecated.
       
      static java.lang.String BKG_YELLOW
      Deprecated.
       
      static java.lang.String BLACK
      Deprecated.
       
      static java.lang.String BLINK
      Deprecated.
       
      static java.lang.String BLUE
      Deprecated.
       
      static java.lang.String BRIGHT
      Deprecated.
       
      static java.lang.String CRS_BACKWARD
      Deprecated.
       
      static java.lang.String CRS_DOWN
      Deprecated.
       
      static java.lang.String CRS_FORWARD
      Deprecated.
       
      static java.lang.String CRS_FPOSITION
      Deprecated.
       
      static java.lang.String CRS_HOME
      Deprecated.
       
      static java.lang.String CRS_UP
      Deprecated.
       
      static java.lang.String CYAN
      Deprecated.
       
      static java.lang.String DIM
      Deprecated.
       
      static java.lang.String DISPLAY
      Deprecated.
       
      static java.lang.String ERS_DOWN
      Deprecated.
       
      static java.lang.String ERS_ELINE
      Deprecated.
       
      static java.lang.String ERS_LINE
      Deprecated.
       
      static java.lang.String ERS_SCREEN
      Deprecated.
       
      static java.lang.String ERS_SLINE
      Deprecated.
       
      static java.lang.String ERS_UP
      Deprecated.
       
      static java.lang.String ESC
      Deprecated.
       
      static java.lang.String GREEN
      Deprecated.
       
      static java.lang.String HIDDEN
      Deprecated.
       
      static java.lang.String MAGENTA
      Deprecated.
       
      static java.lang.String RED
      Deprecated.
       
      static java.lang.String RESET
      Deprecated.
       
      static java.lang.String REVERSE
      Deprecated.
       
      static java.lang.String UNDERSCORE
      Deprecated.
       
      static java.lang.String WHITE
      Deprecated.
       
      static java.lang.String YELLOW
      Deprecated.
       
    • Method Detail

      • displayAttribute

        public static java.lang.String displayAttribute​(java.lang.String... attributes)
        Deprecated.
        Formats the attributes to be processed by an ANSI console
        Parameters:
        attributes -
        Returns:
        the union of the attributes to be sent to the console
      • coloredText

        public static java.lang.String coloredText​(java.lang.String text,
                                                   java.lang.String... attributes)
        Deprecated.
        Use paint()
        Format text to be colored on console
        Parameters:
        text - text to be colored
        attributes - attributes to take into account for coloring
        Returns:
        the union of the attributes to be sent to the console
      • cursorHome

        public static java.lang.String cursorHome​(int row,
                                                  int column)
        Deprecated.
        Use home()
        Move cursor home to {row} and {column}
        Parameters:
        row - horizontal coordinate for home
        column - vertical coordinate for home
        Returns:
        movement attribute to be sent to console
      • cursorUp

        public static java.lang.String cursorUp​(int count)
        Deprecated.
        Use up()
        Move cursor to up
        Parameters:
        count - Number of lines to move
        Returns:
        movement attribute to be sent to console
      • cursorDown

        public static java.lang.String cursorDown​(int count)
        Deprecated.
        Use down()
        Move cursor to dowm
        Parameters:
        count - Number of lines to move
        Returns:
        movement attribute to be sent to console
      • cursorForward

        public static java.lang.String cursorForward​(int count)
        Deprecated.
        Move cursor to right
        Parameters:
        count - Number of spaces to move
        Returns:
        movement attribute to be sent to console
      • cursorBackward

        public static java.lang.String cursorBackward​(int count)
        Deprecated.
        Move cursor to left
        Parameters:
        count - Number of spaces to move
        Returns:
        movement attribute to be sent to console
      • cursorPosition

        public static java.lang.String cursorPosition​(int row,
                                                      int column)
        Deprecated.
        Use home()
        Move cursor to position
        Parameters:
        row - Horizontal position
        column - Vertical position
        Returns:
        movement attribute to be sent to console