Java Terminal Color Output colorString(String input)

Here you can find the source of colorString(String input)

Description

color String

License

Open Source License

Declaration

public static String colorString(String input) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static final String COLOR_CODE = "\u00A7";

    public static String colorString(String input) {
        return input.replaceAll("&&", COLOR_CODE);
    }/* w  w  w . j  a  v  a  2  s.  c o  m*/
}

Related

  1. colorizeSequence(String cigar, String seq)
  2. colorizeText(String str, String color)
  3. colorizeText(String str, String color)
  4. colorizeText(String str, String fgc, String bgc)
  5. colors(String string)
  6. colorString(String string)
  7. colorText(final int color)
  8. colorText(int v, int vlo, int vhi, int rlo, int glo, int blo, int rhi, int ghi, int bhi)