summaryrefslogtreecommitdiff
path: root/src-3.0/GF/System/UseReadline.hs
diff options
context:
space:
mode:
authorkr.angelov <kr.angelov@chalmers.se>2008-06-05 11:29:08 +0000
committerkr.angelov <kr.angelov@chalmers.se>2008-06-05 11:29:08 +0000
commit11f24097b470122e2f3197bce3e6931701a68cc4 (patch)
tree51d752fdb0b9d5e80fb890b16b0721a4d56a3df7 /src-3.0/GF/System/UseReadline.hs
parentf5fd3aa603bf736e47a6fdc6d9bf719ecef9d628 (diff)
complete word completion in the shell. works for commands, flags, options, abstract syntax identifiers and NL strings
Diffstat (limited to 'src-3.0/GF/System/UseReadline.hs')
-rw-r--r--src-3.0/GF/System/UseReadline.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src-3.0/GF/System/UseReadline.hs b/src-3.0/GF/System/UseReadline.hs
index c4a8f9239..7a4999850 100644
--- a/src-3.0/GF/System/UseReadline.hs
+++ b/src-3.0/GF/System/UseReadline.hs
@@ -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"