class Interface
extends InterfaceConstructor
import { Interface } from "https://deno.land/std@0.164.0/node/internal/readline/interface.mjs";
Methods
close()
Closes the readline.Interface
instance.
Returns the real position of the cursor in relation to the input prompt + string.
Returns the current prompt used by rl.prompt()
.
pause()
Pauses the input
stream.
prompt(preserveCursor)
Writes the configured prompt
to a new line in output
.
resume()
Resumes the input
stream if paused.
setPrompt(prompt)
Sets the prompt written to the output.
write(d, key)
Writes either data
or a key
sequence identified by
key
to the output
.
[kGetDisplayPos](str)
[kLine]()
[kMoveCursor](dx)
[kOnLine](line)
[kQuestion](query, cb)
[kSetRawMode](mode)
[kTabComplete](lastKeypressWasTab)
[kTabCompleter](lastKeypressWasTab, unnamed 1)
[kTtyWrite](s, key)
[kWriteToOutput](stringToWrite)
Creates an AsyncIterator
object that iterates through
each line in the input stream as a string.