-3

i was trying to print colored string in bluej using

public static final String ANSI_RESET = "\u001B[0m";
public static final String ANSI_BLACK = "\u001B[30m";
public static final String ANSI_RED = "\u001B[31m";
public static final String ANSI_GREEN = "\u001B[32m";
public static final String ANSI_YELLOW = "\u001B[33m";
public static final String ANSI_BLUE = "\u001B[34m";
public static final String ANSI_PURPLE = "\u001B[35m";
public static final String ANSI_CYAN = "\u001B[36m";
public static final String ANSI_WHITE = "\u001B[37m";

but i was not getting the desired result please help me get colored easily

1 Answers1

0

Windows does not have the necessary ANSI color library that is needed to print colored text...You may have to search for an ANSI library.

My System runs XUBUNTU and the color code works perfectly.

Therefore the problem is with Windows.

Pointless
  • 1
  • 1