Console

actual object Console : BaseConsole
expect object Console : BaseConsole
actual object Console : BaseConsole
actual object Console : BaseConsole
actual object Console : BaseConsole

Properties

Link copied to clipboard

Shortcut for this.bgColor(Color.BLACK)

Shortcut for this.bgColor(Color.BLACK)

Shortcut for this.bgColor(Color.BLACK)

Shortcut for this.bgColor(Color.BLACK)

Link copied to clipboard
open val String.bgBlue: String

Shortcut for this.bgColor(Color.BLUE)

open val String.bgBlue: String

Shortcut for this.bgColor(Color.BLUE)

open val String.bgBlue: String
open val String.bgBlue: String

Shortcut for this.bgColor(Color.BLUE)

open val String.bgBlue: String

Shortcut for this.bgColor(Color.BLUE)

Link copied to clipboard
open val String.bgCyan: String

Shortcut for this.bgColor(Color.CYAN)

open val String.bgCyan: String

Shortcut for this.bgColor(Color.CYAN)

open val String.bgCyan: String
open val String.bgCyan: String

Shortcut for this.bgColor(Color.CYAN)

open val String.bgCyan: String

Shortcut for this.bgColor(Color.CYAN)

Link copied to clipboard

Shortcut for this.bgColor(Color.GREEN)

Shortcut for this.bgColor(Color.GREEN)

Shortcut for this.bgColor(Color.GREEN)

Shortcut for this.bgColor(Color.GREEN)

Link copied to clipboard

Shortcut for this.bgColor(Color.PURPLE)

Shortcut for this.bgColor(Color.PURPLE)

Shortcut for this.bgColor(Color.PURPLE)

Shortcut for this.bgColor(Color.PURPLE)

Link copied to clipboard
open val String.bgRed: String

Shortcut for this.bgColor(Color.RED)

open val String.bgRed: String

Shortcut for this.bgColor(Color.RED)

open val String.bgRed: String
open val String.bgRed: String

Shortcut for this.bgColor(Color.RED)

open val String.bgRed: String

Shortcut for this.bgColor(Color.RED)

Link copied to clipboard

Shortcut for this.bgColor(Color.WHITE)

Shortcut for this.bgColor(Color.WHITE)

Shortcut for this.bgColor(Color.WHITE)

Shortcut for this.bgColor(Color.WHITE)

Link copied to clipboard

Shortcut for this.bgColor(Color.YELLOW)

Shortcut for this.bgColor(Color.YELLOW)

Shortcut for this.bgColor(Color.YELLOW)

Shortcut for this.bgColor(Color.YELLOW)

Link copied to clipboard
open val String.black: String

Shortcut for this.color(Color.BLACK)

open val String.black: String

Shortcut for this.color(Color.BLACK)

open val String.black: String
open val String.black: String

Shortcut for this.color(Color.BLACK)

open val String.black: String

Shortcut for this.color(Color.BLACK)

Link copied to clipboard
open val String.blue: String

Shortcut for this.color(Color.BLUE)

open val String.blue: String

Shortcut for this.color(Color.BLUE)

open val String.blue: String
open val String.blue: String

Shortcut for this.color(Color.BLUE)

open val String.blue: String

Shortcut for this.color(Color.BLUE)

Link copied to clipboard
open val String.bold: String

Makes this String to be bold

open val String.bold: String

Makes this String to be bold

open val String.bold: String
open val String.bold: String

Makes this String to be bold

open val String.bold: String

Makes this String to be bold

Link copied to clipboard

Makes this String to be reversed/highlighted (background/color swapped)

Makes this String to be reversed/highlighted (background/color swapped)

Makes this String to be reversed/highlighted (background/color swapped)

Makes this String to be reversed/highlighted (background/color swapped)

Link copied to clipboard
open val String.cyan: String

Shortcut for this.color(Color.CYAN)

open val String.cyan: String

Shortcut for this.color(Color.CYAN)

open val String.cyan: String
open val String.cyan: String

Shortcut for this.color(Color.CYAN)

open val String.cyan: String

Shortcut for this.color(Color.CYAN)

Link copied to clipboard
open val String.green: String

Shortcut for this.color(Color.GREEN)

open val String.green: String

Shortcut for this.color(Color.GREEN)

open val String.green: String
open val String.green: String

Shortcut for this.color(Color.GREEN)

open val String.green: String

Shortcut for this.color(Color.GREEN)

Link copied to clipboard
open val String.purple: String

Shortcut for this.color(Color.PURPLE)

open val String.purple: String

Shortcut for this.color(Color.PURPLE)

open val String.purple: String
open val String.purple: String

Shortcut for this.color(Color.PURPLE)

open val String.purple: String

Shortcut for this.color(Color.PURPLE)

Link copied to clipboard
open val String.red: String

Shortcut for this.color(Color.RED)

open val String.red: String

Shortcut for this.color(Color.RED)

open val String.red: String
open val String.red: String

Shortcut for this.color(Color.RED)

open val String.red: String

Shortcut for this.color(Color.RED)

Link copied to clipboard

Makes this String to be underlined

Makes this String to be underlined

Makes this String to be underlined

Makes this String to be underlined

Link copied to clipboard
open val String.white: String

Shortcut for this.color(Color.WHITE)

open val String.white: String

Shortcut for this.color(Color.WHITE)

open val String.white: String
open val String.white: String

Shortcut for this.color(Color.WHITE)

open val String.white: String

Shortcut for this.color(Color.WHITE)

Link copied to clipboard
open val String.yellow: String

Shortcut for this.color(Color.YELLOW)

open val String.yellow: String

Shortcut for this.color(Color.YELLOW)

open val String.yellow: String
open val String.yellow: String

Shortcut for this.color(Color.YELLOW)

open val String.yellow: String

Shortcut for this.color(Color.YELLOW)

Functions

Link copied to clipboard
open fun String.ansiEscape(code: Int, extra: String? = null, char: Char = 'm'): String

Sets a raw ansi escape sequence for this String

open fun String.ansiEscape(code: Int, extra: String? = null, char: Char = 'm'): String

Sets a raw ansi escape sequence for this String

open fun String.ansiEscape(code: Int, extra: String?, char: Char): String
open fun String.ansiEscape(code: Int, extra: String? = null, char: Char = 'm'): String

Sets a raw ansi escape sequence for this String

open fun String.ansiEscape(code: Int, extra: String? = null, char: Char = 'm'): String

Sets a raw ansi escape sequence for this String

Link copied to clipboard
open fun StringBuilder.appendAnsiScape(code: Int, extra: String? = null, char: Char = 'm'): StringBuilder
open fun StringBuilder.appendAnsiScape(code: Int, extra: String? = null, char: Char = 'm'): StringBuilder
open fun StringBuilder.appendAnsiScape(code: Int, extra: String?, char: Char): StringBuilder
open fun StringBuilder.appendAnsiScape(code: Int, extra: String? = null, char: Char = 'm'): StringBuilder
open fun StringBuilder.appendAnsiScape(code: Int, extra: String? = null, char: Char = 'm'): StringBuilder
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun Console.assert(cond: Boolean, msg: String)
Link copied to clipboard
open fun String.bgColor(color: AnsiEscape.Color, bright: Boolean = false): String

Makes this string to be in background color and bright

open fun String.bgColor(color: AnsiEscape.Color, bright: Boolean = false): String

Makes this string to be in background color and bright

open fun String.bgColor(color: AnsiEscape.Color, bright: Boolean): String
open fun String.bgColor(color: AnsiEscape.Color, bright: Boolean = false): String

Makes this string to be in background color and bright

open fun String.bgColor(color: AnsiEscape.Color, bright: Boolean = false): String

Makes this string to be in background color and bright

Link copied to clipboard
open fun String.bgColor256(index: Int): String

Makes this string to be in background color index

open fun String.bgColor256(index: Int): String

Makes this string to be in background color index

open fun String.bgColor256(index: Int): String
open fun String.bgColor256(index: Int): String

Makes this string to be in background color index

open fun String.bgColor256(index: Int): String

Makes this string to be in background color index

Link copied to clipboard
inline fun capture(block: () -> Unit): List<BaseConsole.LogEntry>
inline fun capture(block: () -> Unit): List<BaseConsole.LogEntry>
inline fun capture(block: () -> Unit): List<BaseConsole.LogEntry>
inline fun capture(block: () -> Unit): List<BaseConsole.LogEntry>
inline fun capture(block: () -> Unit): List<BaseConsole.LogEntry>
Link copied to clipboard
open fun String.color(color: AnsiEscape.Color, bright: Boolean = false): String

Makes this string to be in foreground color and bright

open fun String.color(color: AnsiEscape.Color, bright: Boolean = false): String

Makes this string to be in foreground color and bright

open fun String.color(color: AnsiEscape.Color, bright: Boolean): String
open fun String.color(color: AnsiEscape.Color, bright: Boolean = false): String

Makes this string to be in foreground color and bright

open fun String.color(color: AnsiEscape.Color, bright: Boolean = false): String

Makes this string to be in foreground color and bright

Link copied to clipboard
open fun String.color256(index: Int): String

Makes this string to be in foreground color index

open fun String.color256(index: Int): String

Makes this string to be in foreground color index

open fun String.color256(index: Int): String
open fun String.color256(index: Int): String

Makes this string to be in foreground color index

open fun String.color256(index: Int): String

Makes this string to be in foreground color index

Link copied to clipboard
fun debug(vararg msg: Any?)

Registers a debug in the console

fun debug(vararg msg: Any?)

Registers a debug in the console

fun debug(vararg msg: Any?)
fun debug(vararg msg: Any?)

Registers a debug in the console

fun debug(vararg msg: Any?)

Registers a debug in the console

Link copied to clipboard
fun error(vararg msg: Any?)

Registers an error in the console

fun error(vararg msg: Any?)

Registers an error in the console

fun error(vararg msg: Any?)
fun error(vararg msg: Any?)

Registers an error in the console

fun error(vararg msg: Any?)

Registers an error in the console

Link copied to clipboard
inline fun <T> hook(noinline hook: (kind: BaseConsole.Kind, msg: Array<out Any?>, logInternal: (kind: BaseConsole.Kind, msg: Array<out Any?>) -> Unit) -> Unit, block: () -> T): T
inline fun <T> hook(noinline hook: (kind: BaseConsole.Kind, msg: Array<out Any?>, logInternal: (kind: BaseConsole.Kind, msg: Array<out Any?>) -> Unit) -> Unit, block: () -> T): T
inline fun <T> hook(noinline hook: (kind: BaseConsole.Kind, msg: Array<out Any?>, logInternal: (kind: BaseConsole.Kind, msg: Array<out Any?>) -> Unit) -> Unit, block: () -> T): T
inline fun <T> hook(noinline hook: (kind: BaseConsole.Kind, msg: Array<out Any?>, logInternal: (kind: BaseConsole.Kind, msg: Array<out Any?>) -> Unit) -> Unit, block: () -> T): T
inline fun <T> hook(noinline hook: (kind: BaseConsole.Kind, msg: Array<out Any?>, logInternal: (kind: BaseConsole.Kind, msg: Array<out Any?>) -> Unit) -> Unit, block: () -> T): T
Link copied to clipboard
fun info(vararg msg: Any?)

Registers a info in the console

fun info(vararg msg: Any?)

Registers a info in the console

fun info(vararg msg: Any?)
fun info(vararg msg: Any?)

Registers a info in the console

fun info(vararg msg: Any?)

Registers a info in the console

Link copied to clipboard
fun log(vararg msg: Any?)

Registers a log in the console

fun log(kind: BaseConsole.Kind, vararg msg: Any?)
fun log(vararg msg: Any?)

Registers a log in the console

fun log(kind: BaseConsole.Kind, vararg msg: Any?)
fun log(vararg msg: Any?)
fun log(kind: BaseConsole.Kind, vararg msg: Any?)
fun log(vararg msg: Any?)

Registers a log in the console

fun log(kind: BaseConsole.Kind, vararg msg: Any?)
fun log(vararg msg: Any?)

Registers a log in the console

fun log(kind: BaseConsole.Kind, vararg msg: Any?)
Link copied to clipboard
fun trace(vararg msg: Any?)

Registers a trace in the console

fun trace(vararg msg: Any?)

Registers a trace in the console

fun trace(vararg msg: Any?)
fun trace(vararg msg: Any?)

Registers a trace in the console

fun trace(vararg msg: Any?)

Registers a trace in the console

Link copied to clipboard
fun warn(vararg msg: Any?)

Registers a warn in the console

fun warn(vararg msg: Any?)

Registers a warn in the console

fun warn(vararg msg: Any?)
fun warn(vararg msg: Any?)

Registers a warn in the console

fun warn(vararg msg: Any?)

Registers a warn in the console