MappedColors

org.specs2.text.MappedColors
See theMappedColors companion object
case class MappedColors(colors: Map[String, AnsiColor]) extends ConsoleColors

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

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Colors
trait AnsiColors
class Object
trait Matchable
class Any
Show all
Self type

Members list

Type members

Inherited classlikes

implicit class AnsiColorOps(s: String)

Attributes

Inherited from:
AnsiColors
Supertypes
class Object
trait Matchable
class Any

Value members

Inherited methods

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

Attributes

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

Attributes

Inherited from:
ConsoleColors
def failure(s: String, doIt: Boolean): String

Attributes

Inherited from:
ConsoleColors
def pending(s: String, doIt: Boolean): String

Attributes

Inherited from:
ConsoleColors
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
def removeColors(s: String): String

Attributes

Inherited from:
ConsoleColors
def removeColors(s: String, doIt: Boolean): String

Attributes

Returns

a string with no color codes

Inherited from:
AnsiColors
def skipped(s: String, doIt: Boolean): String

Attributes

Inherited from:
ConsoleColors
def stats(s: String, doIt: Boolean): String

Attributes

Inherited from:
ConsoleColors
def success(s: String, doIt: Boolean): String

Attributes

Inherited from:
ConsoleColors
def text(s: String, doIt: Boolean): String

Attributes

Inherited from:
ConsoleColors
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

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]

Attributes

Inherited from:
AnsiColors
lazy val allColors: Seq[AnsiColor]

Attributes

Inherited from:
AnsiColors
lazy val black: AnsiColor

Attributes

Inherited from:
AnsiColors
lazy val blue: AnsiColor

Attributes

Inherited from:
AnsiColors
lazy val cyan: AnsiColor

Attributes

Inherited from:
AnsiColors
lazy val green: AnsiColor

Attributes

Inherited from:
AnsiColors
lazy val magenta: AnsiColor

Attributes

Inherited from:
AnsiColors
lazy val red: AnsiColor

Attributes

Inherited from:
AnsiColors
lazy val reset: AnsiColor

Attributes

Inherited from:
AnsiColors
lazy val white: AnsiColor

Attributes

Inherited from:
AnsiColors
lazy val yellow: AnsiColor

Attributes

Inherited from:
AnsiColors

Implicits

Inherited implicits

final implicit def AnsiColorOps(s: String): AnsiColorOps

Attributes

Inherited from:
AnsiColors