Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

java console text color

// Define color constants
public static final String TEXT_RESET = "u001B[0m";
public static final String TEXT_BLACK = "u001B[30m";
public static final String TEXT_RED = "u001B[31m";
public static final String TEXT_GREEN = "u001B[32m";
public static final String TEXT_YELLOW = "u001B[33m";
public static final String TEXT_BLUE = "u001B[34m";
public static final String TEXT_PURPLE = "u001B[35m";
public static final String TEXT_CYAN = "u001B[36m";
public static final String TEXT_WHITE = "u001B[37m";

// Implementation
System.out.println(TEXT_RED + "This text is red!" + TEXT_RESET);
Comment

java console colors


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";

Comment

PREVIOUS NEXT
Code Example
Java :: java one line if else 
Java :: java normal constructor 
Java :: throw io exception java 
Java :: java iterable to list 
Java :: java stop execution 
Java :: circular list java 
Java :: jenna fischer that 70s show 
Java :: java sha256 hex digest 
Java :: sum of array recursion java 
Java :: discord jda get message by id 
Java :: how to create a item in minecraft modding 
Java :: Convert Octal to Binary in java 
Java :: android studio start activity 
Java :: convert class to xml string 
Java :: how to set the backtound color in java 
Java :: creating modulu function withou using % java 
Java :: java.lang.NullPointerException: Cannot invoke "java.lang.CharSequence.length()" because "this.text" is null 
Java :: Java @Inherited 
Java :: how to sort a list of integers in java 
Java :: convert string to byte java 
Java :: loop through array java 
Java :: isblank vs isempty 
Java :: change drawable color programmatically android 
Java :: Arraylist string to character java 
Java :: offsetdattime to date 
Java :: java check how many digits in a number 
Java :: JAVA_HOME not found in your environment. 
Java :: how to convert int to integer in java 
Java :: java localtime format 
Java :: reverse string using recursion java with explanation 
ADD CONTENT
Topic
Content
Source link
Name
6+1 =