trait Terminal extends AnyRef
A Terminal represents a ui connection to sbt. It may control the embedded console for an sbt server or it may control a remote client connected through sbtn. The Terminal is particularly useful whenever an sbt task needs to receive input from the user.
- Alphabetic
- By Inheritance
- Terminal
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
getHeight: Int
Returns the height of the terminal
Returns the height of the terminal
- returns
the height of the terminal
-
abstract
def
getWidth: Int
Returns the width of the terminal.
Returns the width of the terminal.
- returns
the width ot the terminal
-
abstract
def
inputStream: InputStream
An input stream associated with the terminal.
An input stream associated with the terminal. Bytes inputted by the user may be read from this input stream.
- returns
the terminal's input stream
-
abstract
def
printStream: PrintStream
A print stream associated with the terminal.
A print stream associated with the terminal. Writing to this output stream should display text on the terminal.
- returns
the terminal's input stream
-
abstract
def
setMode(canonical: Boolean, echo: Boolean): Unit
Sets the mode of the terminal.
Sets the mode of the terminal. By default,the terminal will be in canonical mode with echo enabled. This means that the terminal's inputStream will not return any bytes until a newline is received and that all of the characters inputed by the user will be echoed to the terminal's output stream.
- canonical
toggles whether or not the terminal input stream is line buffered
- echo
toggles whether or not to echo the characters received from the terminal input stream
Concrete 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[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
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( ... ) @native()