Stack

terminus.effect.Stack
final case class Stack(reset: String)

A Stack handles stack for Terminal effects that overwrite each other within nested blocks. The canoncial example is color. There can only be one foreground or background color in use at any one time, but the color revert to that of the surrounding block when a given block exits. This is handles by storing a stack of color codes, and doing the appropriate actions on entering a block (a push) and exiting a block (a pop).

Value parameters

`reset`:

The escape code to emit when there are no elements left on the stack.

Attributes

Source
Stack.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

Attributes

Source
Stack.scala

Attributes

Source
Stack.scala

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product