Console

zio.Console
See theConsole companion trait
object Console extends Serializable

Attributes

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

Members list

Type members

Classlikes

object ConsoleLive extends Console

Attributes

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

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

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

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

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

Concrete fields

val tag: Tag[Console]