scala.io

package scala.io

Members list

Type members

Classlikes

trait AnsiColor

ANSI escape codes providing control over text formatting and color on supporting text terminals.

ANSI escape codes providing control over text formatting and color on supporting text terminals.

ANSI Style and Control Codes

This group of escape codes provides control over text styling. For example, to turn on reverse video with bold and then turn off all styling embed these codes,

import io.AnsiColor._

object ColorDemo extends App {

 println(s"${REVERSED}${BOLD}Hello 1979!${RESET}")
}

Foreground and Background Colors

Embedding ANSI color codes in text output will control the text foreground and background colors.

Foreground Background
BLACK BLACK_B
RED RED_B
GREEN GREEN_B
YELLOW YELLOW_B
BLUE BLUE_B
MAGENTA MAGENTA_B
CYAN CYAN_B
WHITE WHITE_B

Attributes

Companion
object
Source
AnsiColor.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object AnsiColor
object Console
object AnsiColor extends AnsiColor

Attributes

Companion
trait
Source
AnsiColor.scala
Supertypes
trait AnsiColor
class Object
trait Matchable
class Any
Self type
AnsiColor.type
class BufferedSource(inputStream: InputStream, bufferSize: Int)(implicit val codec: Codec) extends Source

This object provides convenience methods to create an iterable representation of a source file.

This object provides convenience methods to create an iterable representation of a source file.

Attributes

Source
BufferedSource.scala
Supertypes
class Source
trait Closeable
trait Iterator[Char]
class Object
trait Matchable
class Any
Show all
class Codec(val charSet: Charset)

A class for character encoding/decoding preferences.

A class for character encoding/decoding preferences.

Attributes

Companion
object
Source
Codec.scala
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion
class
Source
Codec.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Codec.type

Attributes

Source
Codec.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Codec
Self type
Codec.type
object Source

This object provides convenience methods to create an iterable representation of a source file.

This object provides convenience methods to create an iterable representation of a source file.

Attributes

Companion
class
Source
Source.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Source.type
abstract class Source extends Iterator[Char], Closeable

An iterable representation of source data.

An iterable representation of source data. It may be reset with the optional reset method.

Subclasses must supply the underlying iterator.

Error handling may be customized by overriding the report method.

The current input and position, as well as the next character methods delegate to the positioner.

The default positioner encodes line and column numbers in the position passed to report. This behavior can be changed by supplying a custom positioner.

Attributes

Companion
object
Source
Source.scala
Supertypes
trait Closeable
trait Iterator[Char]
class Object
trait Matchable
class Any
Show all
Known subtypes
object StdIn

Attributes

Source
StdIn.scala
Supertypes
class Object
trait Matchable
class Any
Self type
StdIn.type