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

com.neko233.config233.utils.ConsoleUtils.kt Maven / Gradle / Ivy

There is a newer version: 0.1.8
Show newest version
package com.neko233.config233.utils

object ConsoleUtils {

    private const val ANSI_RESET = "\u001B[0m"
    private const val ANSI_YELLOW = "\u001B[33m"
    private const val ANSI_RED = "\u001B[31m"
    private const val ANSI_BLUE = "\u001B[34m"
    private const val ANSI_GREEN = "\u001B[32m"
    private const val ANSI_CYAN = "\u001B[36m"
    private const val ANSI_PURPLE = "\u001B[35m"

    @JvmStatic
    fun printYellow(message: String) {
        println(ANSI_YELLOW + message + ANSI_RESET)
    }

    @JvmStatic
    fun printRed(message: String) {
        System.err.println(ANSI_RED + message + ANSI_RESET)
    }

    @JvmStatic
    fun printBlue(message: String) {
        println(ANSI_BLUE + message + ANSI_RESET)
    }

    @JvmStatic
    fun printGreen(message: String) {
        println(ANSI_GREEN + message + ANSI_RESET)
    }

    @JvmStatic
    fun printCyan(message: String) {
        println(ANSI_CYAN + message + ANSI_RESET)
    }

    @JvmStatic
    fun printPurple(message: String) {
        println(ANSI_PURPLE + message + ANSI_RESET)
    }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy