MappedColors

case class MappedColors(colors: Map[String, AnsiColor]) extends ConsoleColors

This class takes colors from a map, using default colors if some values are missing

Companion:
object
trait Serializable
trait Product
trait Equals
trait Colors
class Object
trait Matchable
class Any

Type members

Inherited classlikes

implicit class AnsiColorOps(s: String)
Inherited from:
AnsiColors

Value members

Inherited methods

def color(s: String, color: AnsiColor, doIt: Boolean): String
Returns:

a colored string (if args.color == true) color markers are inserted at the beginning and end of each line so that newlines are preserved

Inherited from:
AnsiColors
def error(s: String, doIt: Boolean): String
Inherited from:
ConsoleColors
def failure(s: String, doIt: Boolean): String
Inherited from:
ConsoleColors
def pending(s: String, doIt: Boolean): String
Inherited from:
ConsoleColors
def productElementNames: Iterator[String]
Inherited from:
Product
def productIterator: Iterator[Any]
Inherited from:
Product
def removeColors(s: String): String
Inherited from:
ConsoleColors
def removeColors(s: String, doIt: Boolean): String
Returns:

a string with no color codes

Inherited from:
AnsiColors
def skipped(s: String, doIt: Boolean): String
Inherited from:
ConsoleColors
def stats(s: String, doIt: Boolean): String
Inherited from:
ConsoleColors
def success(s: String, doIt: Boolean): String
Inherited from:
ConsoleColors
def text(s: String, doIt: Boolean): String
Inherited from:
ConsoleColors
override def toString: String
Definition Classes
Inherited from:
ConsoleColors

Concrete fields

lazy override val errorColor: AnsiColor
lazy override val failureColor: AnsiColor
lazy override val pendingColor: AnsiColor
lazy override val skippedColor: AnsiColor
lazy override val statsColor: AnsiColor
lazy override val successColor: AnsiColor
lazy override val textColor: AnsiColor

Inherited fields

lazy val all: Seq[AnsiColor]
Inherited from:
AnsiColors
lazy val allColors: Seq[AnsiColor]
Inherited from:
AnsiColors
lazy val black: AnsiColor
Inherited from:
AnsiColors
lazy val blue: AnsiColor
Inherited from:
AnsiColors
lazy val cyan: AnsiColor
Inherited from:
AnsiColors
lazy val green: AnsiColor
Inherited from:
AnsiColors
lazy val magenta: AnsiColor
Inherited from:
AnsiColors
lazy val red: AnsiColor
Inherited from:
AnsiColors
lazy val reset: AnsiColor
Inherited from:
AnsiColors
lazy val white: AnsiColor
Inherited from:
AnsiColors
lazy val yellow: AnsiColor
Inherited from:
AnsiColors

Implicits

Inherited implicits

final implicit def AnsiColorOps(s: String): AnsiColorOps
Inherited from:
AnsiColors