Console

zio.Console
See theConsole companion trait
object Console extends Serializable

Attributes

Companion
trait
Source
Console.scala
Graph
Supertypes
trait Serializable
class Object
trait Matchable
class Any
Self type
Console.type

Members list

Type members

Classlikes

object ConsoleLive extends Console

Attributes

Source
Console.scala
Supertypes
trait Console
trait Serializable
class Object
trait Matchable
class Any
Self type

Value members

Concrete methods

def printError(line: => Any)(implicit trace: Trace): IO[IOException, Unit]

Prints text to the standard error console.

Prints text to the standard error console.

Attributes

Source
Console.scala
def printLine(line: => Any)(implicit trace: Trace): IO[IOException, Unit]

Prints a line of text to the console, including a newline character.

Prints a line of text to the console, including a newline character.

Attributes

Source
Console.scala
def printLineError(line: => Any)(implicit trace: Trace): IO[IOException, Unit]

Prints a line of text to the standard error console, including a newline character.

Prints a line of text to the standard error console, including a newline character.

Attributes

Source
Console.scala
def readLine(implicit trace: Trace): IO[IOException, String]

Retrieves a line of input from the console. Fails with an java.io.EOFException when the underlying java.io.Reader returns null.

Retrieves a line of input from the console. Fails with an java.io.EOFException when the underlying java.io.Reader returns null.

Attributes

Source
Console.scala
def readLine(prompt: String)(implicit trace: Trace): IO[IOException, String]

Prints the given prompt and then reads a line of input from the console. Fails with an java.io.EOFException when the underlying java.io.Reader returns null.

Prints the given prompt and then reads a line of input from the console. Fails with an java.io.EOFException when the underlying java.io.Reader returns null.

Attributes

Source
Console.scala

Implicits

Implicits

implicit val tag: Tag[Console]

Attributes

Source
Console.scala