All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.engineblock.util.Colors Maven / Gradle / Ivy

Go to download

The driver API for engineblock; Provides the interfaces needed to build drivers that can be loaded by engineblock core

There is a newer version: 2.12.65
Show newest version
/*
 *
 *    Copyright 2016 jshook
 *    Licensed under the Apache License, Version 2.0 (the "License");
 *    you may not use this file except in compliance with the License.
 *    You may obtain a copy of the License at
 *
 *        http://www.apache.org/licenses/LICENSE-2.0
 *
 *    Unless required by applicable law or agreed to in writing, software
 *    distributed under the License is distributed on an "AS IS" BASIS,
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *    See the License for the specific language governing permissions and
 *    limitations under the License.
 * /
 */

package io.engineblock.util;

/**
 * ANSI console colors for enhanced logging
 */
public class Colors {
    public static String Black = (char) 27 + "[30m";
    public static String BlackBG = (char) 27 + "[40m";
    public static String Red = (char) 27 + "[31m";
    public static String RedBG = (char) 27 + "[41m";
    public static String Green = (char) 27 + "[32m";
    public static String GreenBG = (char) 27 + "[42m";
    public static String Yellow = (char) 27 + "[33m";
    public static String YellowBG = (char) 27 + "[43m";
    public static String Blue = (char) 27 + "[34m";
    public static String BlueBG = (char) 27 + "[44m";
    public static String Magenta = (char) 27 + "[35m";
    public static String MagentaBG = (char) 27 + "[45m";
    public static String Cyan = (char) 27 + "[36m";
    public static String CyanBG = (char) 27 + "[46m";
    public static String White = (char) 27 + "[37m";
    public static String WhiteBG = (char) 27 + "[47m";
    public static String BrightBlack = (char) 27 + "[90m";
    public static String BrightBlackBG = (char) 27 + "[100m";
    public static String BrightRed = (char) 27 + "[91m";
    public static String BrightRedBG = (char) 27 + "[101m";
    public static String BrightGreen = (char) 27 + "[92m";
    public static String BrightGreenBG = (char) 27 + "[102m";
    public static String BrightYellow = (char) 27 + "[93m";
    public static String BrightYellowBG = (char) 27 + "[103m";
    public static String BrightBlue = (char) 27 + "[94m";
    public static String BrightBlueBG = (char) 27 + "[104m";
    public static String BrightMagenta = (char) 27 + "[95m";
    public static String BrightMagentaBG = (char) 27 + "[105m";
    public static String BrightCyan = (char) 27 + "[96m";
    public static String BrightCyanBG = (char) 27 + "[106m";
    public static String BrightWhite = (char) 27 + "[97m";
    public static String BrightWhiteBG = (char) 27 + "[107m";
    public static String Reset = (char) 27 + "[49m";
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy