Style

org.typelevel.paiges.Style
See theStyle companion object
sealed abstract class Style extends Serializable

Text styling for viewing in a terminal.

This type represents foreground and background colors as well as other text attributes. It uses a CSI sequence (ESC - '[') to start a zero-width string containing one or more numeric codes, separated by ; and ending in 'm'.

Styles can be combined with ++; if two styles would conflict the one on the right wins. For example: (Fg.Red ++ Fg.Green) = Fg.Green.

See https://en.wikipedia.org/wiki/ANSI_escape_code#Escape_sequences for more information about escape sequences.

Attributes

Companion
object
Source
Style.scala
Graph
Supertypes
trait Serializable
class Object
trait Matchable
class Any
Self type

Members list

Value members

Abstract methods

def start: String

Attributes

Source
Style.scala

Concrete methods

def ++(rhs: Style): Style

Attributes

Source
Style.scala
def end: String

Attributes

Source
Style.scala