public class ReadLine extends EventEmitter
Objs.Constructor<T extends Objs>, Objs.Property<T>
defaultMaxListeners, EventEmitter
Modifier | Constructor and Description |
---|---|
protected |
ReadLine(Objs.Constructor<?> c,
Object js) |
Modifier and Type | Method and Description |
---|---|
static ReadLine |
$as(Object obj) |
void |
close() |
ReadLine |
pause() |
void |
prompt() |
void |
prompt(Boolean preserveCursor) |
void |
question(String query,
Function.A1<? super String,? extends Void> callback) |
ReadLine |
resume() |
void |
setPrompt(String prompt) |
void |
write(Buffer data) |
void |
write(Buffer data,
Key key) |
void |
write(String data) |
void |
write(String data,
Key key) |
addListener, defaultMaxListeners, emit, EventEmitter, getMaxListeners, listenerCount, listenerCount, listeners, on, once, removeAllListeners, removeAllListeners, removeListener, setMaxListeners
$as, $cast, $delete, $get, $js, $set, create, create, defineProperties, defineProperty, freeze, getOwnPropertyDescriptor, getOwnPropertyNames, getPrototypeOf, hasOwnProperty, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, newObject, newObject, preventExtensions, propertyIsEnumerable, seal, toLocaleString, toString, valueOf
protected ReadLine(Objs.Constructor<?> c, Object js)
public void close()
public ReadLine pause()
public void prompt(Boolean preserveCursor)
public void prompt()
public void question(String query, Function.A1<? super String,? extends Void> callback)
public ReadLine resume()
public void setPrompt(String prompt)
public void write(String data)
public void write(Buffer data)
Copyright © 2018. All rights reserved.