Properties
Protected aborted
aborted: boolean = false
Protected Readonly ansi
ansi: boolean
Protected answer Count
answer Count: number
Protected asking
asking: boolean = false
Protected cursor Shown
cursor Shown: boolean = true
Protected Readonly integer Re
integer Re: RegExp = ...
Protected interface
interface: Interface = ...
Protected line Buffer
line Buffer: string = null
Protected Readonly list Keypress Listener
list Keypress Listener: ( ( _: string , key: Key ) => void )
Type declaration
( _: string , key: Key ) : void
Returns void
Protected Readonly list Resize Listener
list Resize Listener: ( ( ) => void )
Protected Readonly max Failure
max Failure: 5 = 5
Protected multi Selection
multi Selection: number [] = null
Protected Readonly multiple Integer Re
multiple Integer Re: RegExp = ...
Protected Readonly multiple Space Re
multiple Space Re: RegExp = ...
Protected Readonly multiple Split Re
multiple Split Re: RegExp = ...
Protected muted
muted: boolean = false
Protected non Multi Selection List
non Multi Selection List: string []
Protected Readonly password Prompt
password Prompt: string
Protected Readonly question Prompt
question Prompt: string
Protected response Abort
response Abort: ( ( ) => void )
Protected response Timeout
response Timeout: Timeout
Protected selection
selection: number = null
Protected selection Answers
selection Answers: string []
Protected selection List
selection List: string []
Protected Readonly stored Write
stored Write: { ( buffer: string | Uint8Array , cb?: ( ( err?: Error ) => void ) ) : boolean ; ( str: string | Uint8Array , encoding?: BufferEncoding , cb?: ( ( err?: Error ) => void ) ) : boolean } = process.stdout.write
Type declaration
( buffer: string | Uint8Array , cb?: ( ( err?: Error ) => void ) ) : boolean
Parameters
buffer: string | Uint8Array
Optional cb: ( ( err?: Error ) => void )
( err?: Error ) : void
Returns void
Returns boolean
( str: string | Uint8Array , encoding?: BufferEncoding , cb?: ( ( err?: Error ) => void ) ) : boolean
Parameters
str: string | Uint8Array
Optional encoding: BufferEncoding
Optional cb: ( ( err?: Error ) => void )
( err?: Error ) : void
Returns void
Returns boolean
Protected stream Err Buffer
stream Err Buffer: string = null
Protected stream Level
stream Level: number = null
Protected stream Out Buffer
stream Out Buffer: string = null
Protected stream Pad
stream Pad: number = null
Protected Readonly stream Prefix
stream Prefix: "| " = "| "
Protected streaming
streaming: boolean = false
Protected terminal Animation
Protected timed Out Response
timed Out Response: boolean
Protected timeout Ms
timeout Ms: number
Sends data on the socket. The second parameter specifies the encoding in the case of a string. It defaults to UTF8 encoding.
Returns
trueif the entire data was flushed successfully to the kernel buffer. Returnsfalseif all or part of the data was queued in user memory.'drain'will be emitted when the buffer is again free.The optional
callbackparameter will be executed when the data is finally written out, which may not be immediately.See
Writablestreamwrite()method for more information.Since
v0.1.90