Module
Node.ReadLine
- Package
- purescript-node-readline
- Repository
- purescript-node/purescript-node-readline
This module provides a binding to the Node readline
API.
#InterfaceOptions Source
data InterfaceOptions :: Type
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. Interface -> LineHandler a -> Effect Unit
Set the current line handler function.
- Modules
- Node.
ReadLine