AnsiColors

org.specs2.text.AnsiColors
See theAnsiColors companion object
trait AnsiColors

This trait provides AnsiColors codes for the OutputReporter

Attributes

See also
Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object AnsiColors.type
class MappedColors
Self type

Members list

Type members

Classlikes

implicit class AnsiColorOps(s: String)

Attributes

Supertypes
class Object
trait Matchable
class Any

Value members

Concrete 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

def removeColors(s: String, doIt: Boolean): String

Attributes

Returns

a string with no color codes

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
Any

Concrete fields

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

Implicits

Implicits

final implicit def AnsiColorOps(s: String): AnsiColorOps