Java Terminal Color Output colorize(String color, String str)

Here you can find the source of colorize(String color, String str)

Description

colorize

License

Apache License

Declaration

public static String colorize(String color, String str) 

Method Source Code

//package com.java2s;
// Licensed under the Apache License, Version 2.0 (the "License");

public class Main {
    public static final String RESET = "\033[0m";

    public static String colorize(String color, String str) {
        return color + str + RESET;
    }//  ww w . j a v a  2s.c  o m
}

Related

  1. colorise(final char alt, final String message)
  2. colorize(String original)
  3. colorize(String string)
  4. colorizeBackground(String str, String color)
  5. colorizeBackground(String str, String color)