Class Ansi

java.lang.Object
org.jdrupes.builder.core.console.Ansi

public final class Ansi extends Object
Provides ANSI escape sequences.
  • Method Details

    • cursorToSol

      public static String cursorToSol()
      Cursor to start of line.
      Returns:
      the string
    • cursorUp

      public static String cursorUp(int lines)
      Cursor up.
      Parameters:
      lines - the lines
      Returns:
      the string
    • cursorDown

      public static String cursorDown(int lines)
      Cursor down.
      Parameters:
      lines - the lines
      Returns:
      the string
    • clearLine

      public static String clearLine()
      Clear the current line.
      Returns:
      the string
    • hideCursor

      public static String hideCursor()
      Hide cursor.
      Returns:
      the string
    • showCursor

      public static String showCursor()
      Show the cursor.
      Returns:
      the string
    • color

      public static String color(Ansi.Color color)
      Sets a color.
      Parameters:
      color - the color
      Returns:
      the string
    • resetAttributes

      public static String resetAttributes()
      Reset attributes.
      Returns:
      the string