Foreground color for ANSI black
Foreground color for ANSI black
Background color for ANSI black
Background color for ANSI black
ANSI blink
ANSI blink
Foreground color for ANSI blue
Foreground color for ANSI blue
Background color for ANSI blue
Background color for ANSI blue
ANSI bold
ANSI bold
Foreground color for ANSI cyan
Foreground color for ANSI cyan
Background color for ANSI cyan
Background color for ANSI cyan
Foreground color for ANSI green
Foreground color for ANSI green
Background color for ANSI green
Background color for ANSI green
ANSI invisible
ANSI invisible
Foreground color for ANSI magenta
Foreground color for ANSI magenta
Background color for ANSI magenta
Background color for ANSI magenta
Foreground color for ANSI red
Foreground color for ANSI red
Background color for ANSI red
Background color for ANSI red
Reset ANSI styles
Reset ANSI styles
ANSI reversed
ANSI reversed
ANSI underlines
ANSI underlines
Foreground color for ANSI white
Foreground color for ANSI white
Background color for ANSI white
Background color for ANSI white
Foreground color for ANSI yellow
Foreground color for ANSI yellow
Background color for ANSI yellow
Background color for ANSI yellow
The default error, can be overridden by setErr
Flushes the output stream.
Flushes the output stream. This function is required when partial output (i.e. output not terminated by a newline character) has to be made visible on the terminal.
The default input, can be overridden by setIn
The default output, can be overridden by setOut
Prints an object to out
using its toString
method.
Prints an object to out
using its toString
method.
the object to print; may be null.
Prints its arguments as a formatted string to the default output, based on a string pattern (in a fashion similar to printf in C).
Prints its arguments as a formatted string to the default output, based on a string pattern (in a fashion similar to printf in C).
The interpretation of the formatting patterns is described in `java.util.Formatter`.
the pattern for formatting the arguments.
the arguments used to instantiating the pattern.
if there was a problem with the format string or arguments
Prints out an object to the default output, followed by a newline character.
Prints out an object to the default output, followed by a newline character.
the object to print.
Prints a newline character on the default output.
Internal usage only.
Internal usage only.
Sets the default error stream for the duration of execution of one thunk.
Sets the default error stream for the duration of execution of one thunk.
the new error stream.
the code to execute with the new error stream active
the results of thunk
withErr[T](err:PrintStream)(thunk: =>T)
Set the default error stream for the duration of execution of one thunk.
Set the default error stream for the duration of execution of one thunk.
the new error stream.
the code to execute with the new error stream active
the results of thunk
withErr(Console.out) { println("This goes to default _out_") }
withErr[T](err:OutputStream)(thunk: =>T)
Sets the default input stream for the duration of execution of one thunk.
Sets the default input stream for the duration of execution of one thunk.
the new input stream.
the code to execute with the new input stream active
the results of thunk
withIn[T](reader:Reader)(thunk: =>T)
Sets the default input stream for the duration of execution of one thunk.
Sets the default input stream for the duration of execution of one thunk.
the code to execute with the new input stream active
the results of thunk
val someFile:Reader = openFile("file.txt") withIn(someFile) { // Reads a line from file.txt instead of default input println(readLine) }
withIn[T](in:InputStream)(thunk: =>T)
Sets the default output stream for the duration of execution of one thunk.
Sets the default output stream for the duration of execution of one thunk.
the new output stream.
the code to execute with the new output stream active
the results of thunk
withOut[T](out:PrintStream)(thunk: => T)
Sets the default output stream for the duration of execution of one thunk.
Sets the default output stream for the duration of execution of one thunk.
the new output stream.
the code to execute with the new output stream active
the results of thunk
withOut(Console.err) { println("This goes to default _error_") }
withOut[T](out:OutputStream)(thunk: => T)
(Since version 2.11.0) Use the method in scala.io.ReadStdin
(Since version 2.11.0) Use the method in scala.io.ReadStdin
(Since version 2.11.0) Use the method in scala.io.ReadStdin
(Since version 2.11.0) Use the method in scala.io.ReadStdin
(Since version 2.11.0) Use the method in scala.io.ReadStdin
(Since version 2.11.0) Use the method in scala.io.ReadStdin
(Since version 2.11.0) Use the method in scala.io.ReadStdin
(Since version 2.11.0) Use the method in scala.io.ReadStdin
(Since version 2.11.0) Use the method in scala.io.ReadStdin
(Since version 2.11.0) Use the method in scala.io.ReadStdin
(Since version 2.11.0) Use the method in scala.io.ReadStdin
(Since version 2.11.0) Use the method in scala.io.ReadStdin
(Since version 2.11.0) Use the method in scala.io.ReadStdin
(Since version 2.11.0) Use the method in scala.io.ReadStdin
Sets the default error stream.
Sets the default error stream.
the new error stream.
(Since version 2.11.0) Use withErr
Sets the default error stream.
Sets the default error stream.
the new error stream.
(Since version 2.11.0) Use withErr
Sets the default input stream.
Sets the default input stream.
the new input stream.
(Since version 2.11.0) Use withIn
Sets the default input stream.
Sets the default input stream.
specifies the new input stream.
(Since version 2.11.0) Use withIn
Sets the default output stream.
Sets the default output stream.
the new output stream.
(Since version 2.11.0) Use withOut
Sets the default output stream.
Sets the default output stream.
the new output stream.
(Since version 2.11.0) Use withOut
Implements functionality for printing Scala values on the terminal as well as reading specific values. Also defines constants for marking up text on ANSI terminals.
1.0, 03/09/2003