terminus.effect
Members list
Type members
Classlikes
Attributes
- Source
- AlternateScreenMode.scala
- Supertypes
- Known subtypes
- Self type
-
F
The codes for controlling terminal functionality, commonly known as ANSI escape codes. See:
The codes for controlling terminal functionality, commonly known as ANSI escape codes. See:
Attributes
- Source
- AnsiCodes.scala
- Supertypes
- Self type
-
AnsiCodes.type
Attributes
- Source
- ApplicationMode.scala
- Supertypes
- Known subtypes
- Self type
-
F
Attributes
- Source
- Color.scala
- Supertypes
- Known subtypes
- Self type
-
F
Functionality for manipulating the terminal's cursor.
Functionality for manipulating the terminal's cursor.
Attributes
- Source
- Cursor.scala
- Supertypes
- Known subtypes
Terminal effects that can change display properties.
Terminal effects that can change display properties.
Attributes
- Source
- Display.scala
- Supertypes
- Known subtypes
- Self type
-
F
Marker trait for Terminus effect traits. All effect traits should have this as a super-trait.
Marker trait for Terminus effect traits. All effect traits should have this as a super-trait.
Attributes
- Source
- Effect.scala
- Supertypes
- Known subtypes
-
trait Readertrait Terminalclass JLineTerminalobject NativeTerminaltrait Writertrait Cursorclass StringBuilderTerminaltrait Erasetrait ScrollShow all
Attributes
- Companion
- object
- Source
- Reader.scala
- Supertypes
- Known subtypes
-
object Eof
Attributes
- Companion
- trait
- Source
- Reader.scala
- Supertypes
- Self type
-
Eof.type
Functionality for clearing contents on the terminal.
Functionality for clearing contents on the terminal.
Attributes
- Source
- Erase.scala
- Supertypes
- Known subtypes
Attributes
- Source
- RawMode.scala
- Supertypes
- Known subtypes
- Self type
-
F
Attributes
- Source
- Reader.scala
- Supertypes
- Known subtypes
Functionality for scrolling the terminal.
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
).
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
- Supertypes
A Toggle
stores state for Terminal effects that involve turning on some state within a block of code and turning it off when that block exits. A typical example is text styling: we have a block where we want invert styling enabled, and when the block finishes we want inverted styling turned off. A complication arises when we can nest blocks. An inverted block might be nested inside another inverted block. It's only when the outer block exits that the styling should be turned off. A Toggle
handles this with a counter. Only when the counter hits zero do we emit the reset escape code.
A Toggle
stores state for Terminal effects that involve turning on some state within a block of code and turning it off when that block exits. A typical example is text styling: we have a block where we want invert styling enabled, and when the block finishes we want inverted styling turned off. A complication arises when we can nest blocks. An inverted block might be nested inside another inverted block. It's only when the outer block exits that the styling should be turned off. A Toggle
handles this with a counter. Only when the counter hits zero do we emit the reset escape code.
Value parameters
- `reset`:
-
The escape code to emit when exiting a block.
- `set`:
-
The escape code to emit when entering a block.
Attributes
- Source
- Toggle.scala
- Supertypes
Attributes
- Source
- WithEffect.scala
- Supertypes
- Known subtypes
-
object NativeTerminal
- Self type
-
F
Utility trait for working with Stack
.
Utility trait for working with Stack
.
Attributes
- Source
- WithStack.scala
- Supertypes
- Known subtypes
-
trait Color[F]class StringBuilderTerminaltrait Terminalclass JLineTerminalobject NativeTerminaltrait Display[F]Show all
- Self type
-
F
Utility trait for working with Toggle
.
Utility trait for working with Toggle
.
Attributes
- Source
- WithToggle.scala
- Supertypes
- Known subtypes
-
trait Display[F]class StringBuilderTerminaltrait Terminalclass JLineTerminalobject NativeTerminal
- Self type
-
F
Interface for writing to a console.
Interface for writing to a console.
Attributes
- Source
- Writer.scala
- Supertypes
- Known subtypes
-
trait Cursorclass StringBuilderTerminaltrait Terminalclass JLineTerminalobject NativeTerminaltrait Erasetrait ScrollShow all