ConsolePainter

open class ConsolePainter

The ConsolePainter class is useful to print out any text in the console in different styles with "ANSI" escape characters

Author

N7ghtm4r3 - Tecknobit

Since

2.1.1

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
ANSIColor list of available ANSI colors
Link copied to clipboard
ANSIModifier list of available ANSI modifiers

Properties

Link copied to clipboard
private val ANSI_SUFFIX: String = "#m"
ANSI_SUFFIX ANSI suffix constant

Functions

Link copied to clipboard
open fun <T> printBold(message: T)
Method to print a bold text in the console
open fun <T> printBold(message: T, color: ConsolePainter.ANSIColor)
Method to print a colored bold text in the console
Link copied to clipboard
open fun <T> printColored(message: T, color: ConsolePainter.ANSIColor)
Method to print a colored text in the console
Link copied to clipboard
open fun <T> printCrossedOut(message: T)
Method to print a crossed-out text in the console
open fun <T> printCrossedOut(message: T, color: ConsolePainter.ANSIColor)
Method to print a crossed-out colored text in the console
Link copied to clipboard
open fun <T> printDoublyUnderlined(message: T)
Method to print a doubly underlined text in the console
open fun <T> printDoublyUnderlined(message: T, color: ConsolePainter.ANSIColor)
Method to print a doubly underlined colored text in the console
Link copied to clipboard
open fun <T> printFramed(message: T)
Method to print a framed text in the console
open fun <T> printFramed(message: T, color: ConsolePainter.ANSIColor)
Method to print a framed colored text in the console
Link copied to clipboard
open fun <T> printInvert(message: T)
Method to print an invert text in the console
open fun <T> printInvert(message: T, color: ConsolePainter.ANSIColor)
Method to print an invert colored text in the console
Link copied to clipboard
open fun <T> printItalic(message: T)
Method to print an italic text in the console
open fun <T> printItalic(message: T, color: ConsolePainter.ANSIColor)
Method to print an italic colored text in the console
Link copied to clipboard
private open fun printNReset(message: String)
Method to print a text in the console and reset the console to default status
Link copied to clipboard
open fun <T> printUnderlined(message: T)
Method to print an underlined text in the console
open fun <T> printUnderlined(message: T, color: ConsolePainter.ANSIColor)
Method to print an underlined colored text in the console