Terminal

terminus.Terminal
See theTerminal companion object

Attributes

Companion
object
Source
Terminal.scala
Graph
Supertypes
trait Reader
trait RawMode[Terminal]
trait Peeker
trait KeyReader
trait Erase
trait Dimensions
trait Format[Terminal]
trait Cursor
trait Writer
trait Effect
trait Color[Terminal]
class Object
trait Matchable
class Any
Show all
Known subtypes

Members list

Type members

Inherited classlikes

object background

Attributes

Inherited from:
Color
Source
Color.scala
Supertypes
class Object
trait Matchable
class Any
object cursor

Attributes

Inherited from:
Cursor
Source
Cursor.scala
Supertypes
class Object
trait Matchable
class Any
object erase

Attributes

Inherited from:
Erase
Source
Erase.scala
Supertypes
class Object
trait Matchable
class Any
object foreground

Attributes

Inherited from:
Color
Source
Color.scala
Supertypes
class Object
trait Matchable
class Any
object format

Attributes

Inherited from:
Format
Source
Format.scala
Supertypes
class Object
trait Matchable
class Any

Value members

Inherited methods

protected def withStack[A](stack: Stack, code: String)(f: Terminal ?=> 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: Terminal ?=> 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

Inherited and Abstract methods

def alternateScreen[A](f: Terminal ?=> A): A

Run the given terminal program f in alternate screen mode, which means that whatever is displayed by f will not been shown when the program exits, and similarly key presses will not be saved in the history buffer.

Run the given terminal program f in alternate screen mode, which means that whatever is displayed by f will not been shown when the program exits, and similarly key presses will not be saved in the history buffer.

Attributes

Inherited from:
AlternateScreenMode
Source
AlternateScreenMode.scala
def application[A](f: Terminal ?=> A): A

Run the given terminal program f in application mode, which changes the input sent to the program when arrow keys are pressed. See https://invisible-island.net/xterm/xterm.faq.html#xterm_arrows

Run the given terminal program f in application mode, which changes the input sent to the program when arrow keys are pressed. See https://invisible-island.net/xterm/xterm.faq.html#xterm_arrows

Attributes

Inherited from:
ApplicationMode
Source
ApplicationMode.scala
def flush(): Unit

Flush the current output, causing it to be shown on the console.

Flush the current output, causing it to be shown on the console.

Attributes

Inherited from:
Writer
Source
Writer.scala

Attributes

Inherited from:
Dimensions
Source
Dimensions.scala

Attributes

Inherited from:
Peeker
Source
Peeker.scala
def raw[A](f: Terminal ?=> A): A

Run the given terminal program f in raw mode, which means that the program can read user input a character at a time. In canonical mode, which is the default, user input is only available a line at a time.

Run the given terminal program f in raw mode, which means that the program can read user input a character at a time. In canonical mode, which is the default, user input is only available a line at a time.

Attributes

Inherited from:
RawMode
Source
RawMode.scala
def read(): Eof | Char

Attributes

Inherited from:
Reader
Source
Reader.scala

Attributes

Inherited from:
NonBlockingReader
Source
NonBlockingReader.scala
def readKey(): Eof | Key

Attributes

Inherited from:
KeyReader
Source
KeyReader.scala

Attributes

Inherited from:
Dimensions
Source
Dimensions.scala

Write a string to the console.

Write a string to the console.

Attributes

Inherited from:
Writer
Source
Writer.scala
def write(char: Char): Unit

Write a character to the console.

Write a character to the console.

Attributes

Inherited from:
Writer
Source
Writer.scala