Java Terminal Color Output colorize(String string)

Here you can find the source of colorize(String string)

Description

colorize

License

Creative Commons License

Declaration

public static String colorize(String string) 

Method Source Code

//package com.java2s;
//License from project: Creative Commons License 

public class Main {
    public static String colorize(String string) {
        return string.replaceAll("(?i)&([a-k0-9])", "\u00A7$1");
    }/*from ww w .jav  a  2 s .c  o m*/
}

Related

  1. colorise(final char alt, final String message)
  2. colorize(String color, String str)
  3. colorize(String original)
  4. colorizeBackground(String str, String color)
  5. colorizeBackground(String str, String color)
  6. colorizeBackground(String str, String color, boolean autoff)
  7. colorizeSequence(String cigar, String seq)