zio.console

package zio.console

Type members

Classlikes

object Console extends Serializable

Types

Value members

Concrete methods

def putStr(line: => String): ZIO[Console, IOException, Unit]

Prints text to the console.

Prints text to the console.

def putStrErr(line: => String): ZIO[Console, IOException, Unit]

Prints text to the standard error console.

Prints text to the standard error console.

def putStrLn(line: => String): ZIO[Console, 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.

def putStrLnErr(line: => String): ZIO[Console, 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.

Concrete fields

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.