terminus.effect
Members list
Type members
Classlikes
Attributes
- Source
- AlternateScreenMode.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- 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
-
class Objecttrait Matchableclass Any
- Self type
-
AnsiCodes.type
Attributes
- Source
- ApplicationMode.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
- Self type
-
F
Ascii character codes and Ascii related extension methods. See: https://www.ascii-code.com/
Ascii character codes and Ascii related extension methods. See: https://www.ascii-code.com/
Attributes
- Source
- Ascii.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Ascii.type
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
Functionalities related to the dimensions of the terminal
Functionalities related to the dimensions of the terminal
Attributes
- Source
- Dimensions.scala
- Supertypes
- Known subtypes
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
-
class Objecttrait Matchableclass Any
- Known subtypes
-
trait Dimensionstrait Terminalclass JLineTerminalobject NativeTerminaltrait KeyReaderclass StringBufferReadertrait TerminalKeyReadertrait NonBlockingReadertrait Peekertrait Readertrait Writertrait Cursorclass StringBuilderTerminaltrait Erasetrait ScrollShow all
Functionality for clearing contents on the terminal.
Functionality for clearing contents on the terminal.
Attributes
- Source
- Erase.scala
- Supertypes
- Known subtypes
Terminal effects that can change character formatting properties.
Terminal effects that can change character formatting properties.
Attributes
- Source
- Format.scala
- Supertypes
- Known subtypes
- Self type
-
F
Attributes
- Source
- KeyReader.scala
- Supertypes
- Known subtypes
-
class StringBufferReadertrait TerminalKeyReaderclass JLineTerminalobject NativeTerminaltrait Terminal
Attributes
- Source
- NonBlockingReader.scala
- Supertypes
- Known subtypes
Attributes
- Source
- Peeker.scala
- Supertypes
- Known subtypes
Attributes
- Source
- RawMode.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- 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 Reader that reads input from the given String. Mostly useful for testing.
A Reader that reads input from the given String. Mostly useful for testing.
Attributes
- Source
- StringBufferReader.scala
- Supertypes
-
trait TerminalKeyReadertrait KeyReadertrait NonBlockingReadertrait Readertrait Effectclass Objecttrait Matchableclass AnyShow all
Attributes
- Source
- Dimensions.scala
- Supertypes
An implementation of KeyReader that interprets the standard terminal escape codes for key presses. The timeout is how long we wait between an escape being pressed and another key before we decide they are separate key presses.
An implementation of KeyReader that interprets the standard terminal escape codes for key presses. The timeout is how long we wait between an escape being pressed and another key before we decide they are separate key presses.
Attributes
- Source
- TerminalKeyReader.scala
- Supertypes
- Known subtypes
- Self type
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
-
class Objecttrait Matchableclass Any
Attributes
- Source
- WithEffect.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object NativeTerminal
- Self type
-
F
Utility trait for working with Stack
.
Utility trait for working with Stack
.
Attributes
- Source
- WithStack.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
trait Color[F]class StringBuilderTerminaltrait Terminalclass JLineTerminalobject NativeTerminaltrait Format[F]Show all
- Self type
-
F
Utility trait for working with Toggle
.
Utility trait for working with Toggle
.
Attributes
- Source
- WithToggle.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
trait Format[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