trait ReplOptions extends Object with StObject
- Annotations
- @JSType() @native()
- Source
- replMod.scala
- Alphabetic
- By Inheritance
- ReplOptions
- StObject
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
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
- val breakEvalOnSigint: UndefOr[Boolean]
Stop evaluating the current piece of code when
SIGINTis received, i.e.Stop evaluating the current piece of code when
SIGINTis received, i.e.Ctrl+Cis pressed. This cannot be used together with a customevalfunction. Default:false. - def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- val completer: UndefOr[|[Completer, AsyncCompleter]]
An optional function used for custom Tab auto completion.
An optional function used for custom Tab auto completion.
- See also
https://nodejs.org/dist/latest-v11.x/docs/api/readline.html#readline_use_of_the_completer_function
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- val eval: UndefOr[REPLEval]
The function to be used when evaluating each given line of input.
The function to be used when evaluating each given line of input. Default: an async wrapper for the JavaScript
eval()function. Anevalfunction can error withrepl.Recoverableto indicate the input was incomplete and prompt for additional lines.- See also
https://nodejs.org/dist/latest-v10.x/docs/api/repl.html#repl_default_evaluation
https://nodejs.org/dist/latest-v10.x/docs/api/repl.html#repl_custom_evaluation_functions
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hasOwnProperty(v: scala.Predef.String): Boolean
- Definition Classes
- Object
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- val ignoreUndefined: UndefOr[Boolean]
If
true, specifies that the default writer will not output the return value of a command if it evaluates toundefined.If
true, specifies that the default writer will not output the return value of a command if it evaluates toundefined. Default:false. - val input: UndefOr[ReadableStream]
The
Readablestream from which REPL input will be read. - final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- val output: UndefOr[WritableStream]
The
Writablestream to which REPL output will be written. - val preview: UndefOr[Boolean]
Defines if the repl prints output previews or not.
- val prompt: UndefOr[java.lang.String]
The input prompt to display.
- def propertyIsEnumerable(v: scala.Predef.String): Boolean
- Definition Classes
- Object
- val replMode: UndefOr[Symbol]
A flag that specifies whether the default evaluator executes all JavaScript commands in strict mode or default (sloppy) mode.
A flag that specifies whether the default evaluator executes all JavaScript commands in strict mode or default (sloppy) mode. Accepted values are: -
repl.REPL_MODE_SLOPPY- evaluates expressions in sloppy mode. -repl.REPL_MODE_STRICT- evaluates expressions in strict mode. This is equivalent to prefacing every repl statement with'use strict'. - final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val terminal: UndefOr[Boolean]
If
true, specifies that the output should be treated as a TTY terminal, and have ANSI/VT100 escape codes written to it.If
true, specifies that the output should be treated as a TTY terminal, and have ANSI/VT100 escape codes written to it. Default: checking the value of theisTTYproperty on the output stream upon instantiation. - def toLocaleString(): scala.Predef.String
- Definition Classes
- Object
- def toString(): java.lang.String
- Definition Classes
- AnyRef → Any
- val useColors: UndefOr[Boolean]
If
true, specifies that the defaultwriterfunction should include ANSI color styling to REPL output.If
true, specifies that the defaultwriterfunction should include ANSI color styling to REPL output. If a customwriterfunction is provided then this has no effect. Default: the REPL instance'sterminalvalue. - val useGlobal: UndefOr[Boolean]
If
true, specifies that the default evaluation function will use the JavaScriptglobalas the context as opposed to creating a new separate context for the REPL instance.If
true, specifies that the default evaluation function will use the JavaScriptglobalas the context as opposed to creating a new separate context for the REPL instance. The node CLI REPL sets this value totrue. Default:false. - def valueOf(): Any
- Definition Classes
- Object
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- val writer: UndefOr[REPLWriter]
The function to invoke to format the output of each command before writing to
output.The function to invoke to format the output of each command before writing to
output. Default: a wrapper forutil.inspect.- See also
https://nodejs.org/dist/latest-v10.x/docs/api/repl.html#repl_customizing_repl_output
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated