Format

terminus.effect.Format
trait Format[+F <: Writer] extends WithStack[F], WithToggle[F]

Terminal effects that can change character formatting properties.

Attributes

Source
Format.scala
Graph
Supertypes
trait WithToggle[F]
trait WithStack[F]
class Object
trait Matchable
class Any
Known subtypes
Self type
F

Members list

Type members

Classlikes

object format

Attributes

Source
Format.scala
Supertypes
class Object
trait Matchable
class Any
Self type
format.type

Value members

Inherited methods

protected def withStack[A](stack: Stack, code: String)(f: F ?=> A): A

Use withStack to ensure a stack is pushed on before f is evaluated, and popped when f finishes.

Use withStack to ensure a stack is pushed on before f is evaluated, and popped when f finishes.

Attributes

Inherited from:
WithStack
Source
WithStack.scala
protected def withToggle[A](toggle: Toggle)(f: F ?=> A): A

Use withToggle to ensure a toggle is turned on before f is evaluated, and turned off when f finishes.

Use withToggle to ensure a toggle is turned on before f is evaluated, and turned off when f finishes.

Attributes

Inherited from:
WithToggle
Source
WithToggle.scala