JLineTerminal

dotty.tools.repl.JLineTerminal
class JLineTerminal extends Closeable

Attributes

Graph
Supertypes
trait Closeable
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def close(): Unit
protected def promptStr: String
def readLine(completer: Completer)(using Context): String

Blockingly read line from System.in

Blockingly read line from System.in

This entry point into JLine handles everything to do with terminal emulation. This includes:

  • Multi-line support
  • Copy-pasting
  • History
  • Syntax highlighting
  • Auto-completions

Attributes

Throws
EndOfFileException

This exception is thrown when the user types Ctrl-D.