com.neko233.config233.utils.ConsoleUtils.kt Maven / Gradle / Ivy
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)
}
}