Copyright | (c) 20002003 Malcolm Wallace |
---|---|
License | GPL (if it depends on readline, which is GPL) BSD (otherwise) |
Maintainer | libraries@haskell.org |
Stability | experimental |
Portability | non-portable (unix-specific at the moment) |
Safe Haskell | None |
Language | Haskell98 |
System.Console.SimpleLineEditor
Description
A simple line editor, using the GNU readline library if available, or a small emulation otherwise.
Synopsis
- initialise :: IO ()
- restore :: IO ()
- getLineEdited :: String -> IO (Maybe String)
- delChars :: String -> IO ()
Documentation
initialise :: IO () Source #
Set up the environment so that the terminal passes characters directly into the Haskell program, for immediate interpretation by the line editor.
Restore the environment so that the terminal is usable in normal mode once again.
getLineEdited :: String -> IO (Maybe String) Source #