object JLineConsole extends Console
A console that provides line editing using JLine. This code follows sbt's equivalent code to try to ensure that there are no incompatibilities.
- Source
- Console.scala
- Alphabetic
- By Inheritance
- JLineConsole
- Console
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
readInt(prompt: String): Int
Read an integer after prompting with the given prompt.
Read an integer after prompting with the given prompt. Throws a number format exception if something that is not an integer is entered.
- Definition Classes
- Console
-
def
readLine(prompt: String): String
Read a line under controlled conditions.
Read a line under controlled conditions. Need to do this since console is a shared static resource. In particular, it's shared with sbt if run in that context.
- Definition Classes
- JLineConsole → Console
-
lazy val
reader: ConsoleReader
The reader to use to access the console.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
terminal: Terminal
Return a handle for the current terminal.
-
def
toString(): String
Print representation for usage messages.
Print representation for usage messages.
- Definition Classes
- JLineConsole → AnyRef → Any
-
def
usingTerminal[T](f: (Terminal) ⇒ T): T
As for
withTerminalbut restores the terminal before running the computation. -
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
withTerminal[T](f: (Terminal) ⇒ T): T
Run a computation that depends on the current terminal in a synchromized fashion.