Search
Preparing search index...
The search index is not available
DefinitelyTyped
Inherited
Private
Externals
Only exported
readline
ReadLine
Class ReadLine
Hierarchy
EventEmitter
ReadLine
Index
Methods
addListener
close
emit
listeners
on
once
pause
prompt
question
removeAllListeners
removeListener
resume
setMaxListeners
setPrompt
write
Methods
public
addListener
(
event
:
string
, listener
:
Function
)
:
EventEmitter
Parameters
event:
string
listener:
Function
Returns
EventEmitter
public
close
(
)
public
emit
(
event
:
string
, args
?:
Array<any>
)
:
boolean
Parameters
event:
string
args?:
Array<any>
optional
Returns
boolean
public
listeners
(
event
:
string
)
:
Array<Function>
Parameters
event:
string
Returns
Array<Function>
public
on
(
event
:
string
, listener
:
Function
)
:
EventEmitter
Parameters
event:
string
listener:
Function
Returns
EventEmitter
public
once
(
event
:
string
, listener
:
Function
)
:
EventEmitter
Parameters
event:
string
listener:
Function
Returns
EventEmitter
public
pause
(
)
public
prompt
(
preserveCursor
?:
boolean
)
Parameters
preserveCursor?:
boolean
optional
public
question
(
query
:
string
, callback
:
Function
)
Parameters
query:
string
callback:
Function
public
removeAllListeners
(
event
?:
string
)
:
EventEmitter
Parameters
event?:
string
optional
Returns
EventEmitter
public
removeListener
(
event
:
string
, listener
:
Function
)
:
EventEmitter
Parameters
event:
string
listener:
Function
Returns
EventEmitter
public
resume
(
)
public
setMaxListeners
(
n
:
number
)
Parameters
n:
number
public
setPrompt
(
prompt
:
string
, length
:
number
)
Parameters
prompt:
string
length:
number
public
write
(
data
:
any
, key
?:
any
)
Parameters
data:
any
key?:
any
optional
Globals
NodeJS
Qio
QioFS
QioHTTP
assert
buffer
buffer-stream
child_process
cluster
crypto
dgram
dns
domain
events
fs
fs
http
http
https
jquery
net
os
path
punycode
q
querystring
reader
readline
repl
stream
string_decoder
tls
tty
url
util
vm
writer
zlib
ReadLineOptions
ReadLine
addListener
close
emit
listeners
on
once
pause
prompt
question
removeAllListeners
removeListener
resume
setMaxListeners
setPrompt
write
createInterface