1
0
forked from GitHub/gf-core

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 e94a57e37b
commit e54e17e43b
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"