Module
Node.ReadLine
- Package
- purescript-node-readline
- Repository
- purescript-node/purescript-node-readline
This module provides a binding to the Node readline
API.
#Interface Source
data Interface
A handle to a console interface.
A handle can be created with the createInterface
function.
#InterfaceOptions Source
data InterfaceOptions
Options passed to readline
's createInterface
#LineHandler Source
type LineHandler a = String -> Effect a
A function which handles each line of input.
#createInterface Source
createInterface :: forall r. Readable r -> Options InterfaceOptions -> Effect Interface
Builds an interface with the specified options.
#createConsoleInterface Source
createConsoleInterface :: Completer -> Effect Interface
Create an interface with the specified completion function.
#noCompletion Source
noCompletion :: Completer
A completion function which offers no completions.
#setLineHandler Source
setLineHandler :: forall a. LineHandler a -> Interface -> Effect Unit
Set the current line handler function.
- Modules
- Node.
ReadLine