Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

27 lines (20 sloc) 0.509 kb
/* NSC -- new Scala compiler
* Copyright 2006-2013 LAMP/EPFL
* @author Martin Odersky
*/
package scala.tools.nsc
import java.io.Writer
/** A Writer that writes onto the Scala Console.
*
* @author Lex Spoon
* @version 1.0
*/
class ConsoleWriter extends Writer {
def close = flush
def flush = Console.flush
def write(cbuf: Array[Char], off: Int, len: Int) {
if (len > 0)
write(new String(cbuf.slice(off, off+len)))
}
override def write(str: String) { Console.print(str) }
}
Jump to Line
Something went wrong with that request. Please try again.