complete word completion in the shell. works for commands, flags, options, abstract syntax identifiers and NL strings

This commit is contained in:
kr.angelov
2008-06-05 11:29:08 +00:00
parent f5fd3aa603
commit 11f24097b4
5 changed files with 120 additions and 22 deletions

View File

@@ -18,6 +18,8 @@ import System.Console.Readline
fetchCommand :: String -> IO (String)
fetchCommand s = do
setCompletionAppendCharacter Nothing
setBasicQuoteCharacters ""
res <- readline s
case res of
Nothing -> return "q"