trait
Filter extends AnyRef
Abstract Value Members
-
abstract
def
identifier: String
-
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: Any): Boolean
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
-
-
def
finalize(): Unit
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
final
def
isInstanceOf[T0]: Boolean
-
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toString(): String
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
The way you configure your terminal behavior; a trivial wrapper around a function, though you should provide a good
.toString
method to make debugging easier. The TermInfo and TermAction types are its interface to the terminal.Filters are composed sequentially: if a filter returns
None
the next filter is tried, while if a filter returnsSome
that ends the cascade. While yourop
function interacts with the terminal purely through immutable case classes, the Filter itself is free to maintain its own state and mutate it whenever, even when returningNone
to continue the cascade.