module System.Console.Readline.StateVar (
readline ,
addHistory ,
lineBuffer,
point, end, mark,
done, pendingInput,
eraseEmptyLine,
prompt,
alreadyPrompted,
libraryVersion, terminalName, readLineName, inStream, outStream, startupHook,
preInputHook,
eventHook, redisplayFunction,
Keymap,
newBareKeymap ,
copyKeymap ,
newKeymap ,
freeKeymap ,
keymap, keymapByName, keymapName, executingKeymap, bindingKeymap,
Callback,
addDefun ,
bindKey ,
bindKeyInMap ,
unbindKey ,
unbindKeyInMap ,
unbindCommandInMap ,
Entry(..),
genericBind ,
parseAndBind ,
readInitFile ,
namedFunction ,
functionOfKeyseq ,
functionDumper ,
listFunmapNames ,
funmapNames ,
beginUndoGroup, endUndoGroup ,
UndoCode(..),
addUndo ,
freeUndoList ,
doUndo ,
modifying ,
redisplay ,
forcedUpdateDisplay ,
onNewLine ,
onNewLineWithPrompt ,
resetLineState ,
message ,
clearMessage ,
savePrompt ,
restorePrompt ,
insertText ,
deleteText ,
copyText ,
killText ,
readKey ,
stuffChar ,
initialize ,
resetTerminal ,
ding ,
displayMatchList ,
callbackHandlerInstall ,
callbackReadChar ,
catchSignals, catchSigwinch,
cleanupAfterSignal ,
freeLineState ,
resetAfterSignal ,
resizeTerminal ,
setSignals ,
clearSignals ,
completeInternal ,
complete ,
possibleCompletions ,
insertCompletions ,
completionMatches ,
filenameCompletionFunction ,
usernameCompletionFunction ,
completionEntryFunction, attemptedCompletionFunction, filenameQuotingFunction,
quoteFilename ,
filenameDequotingFunction, charIsQuotedP, completionQueryItems,
basicWordBreakCharacters,
basicQuoteCharacters,
completerWordBreakCharacters,
completerQuoteCharacters,
filenameQuoteCharacters,
specialPrefixes,
completionAppendCharacter,
ignoreCompletionDuplicates,
filenameCompletionDesired,
filenameQuotingDesired,
inhibitCompletion,
attemptedCompletionOver,
ignoreSomeCompletionsFunction,
directoryCompletionHook,
completionWordBreakHook,
completionDisplayMatchesHook
)
where
import System.Console.Readline
import Data.StateVar
import System.IO
import Foreign
import Foreign.C
lineBuffer = makeStateVar getLineBuffer setLineBuffer
point = makeStateVar getPoint setPoint
end = makeStateVar getEnd setEnd
mark = makeStateVar getMark setMark
keymap = makeStateVar getKeymap setKeymap
done = makeSettableStateVar setDone
pendingInput = makeSettableStateVar setPendingInput
eraseEmptyLine = makeSettableStateVar setEraseEmptyLine
alreadyPrompted = makeSettableStateVar setAlreadyPrompted
readLineName = makeSettableStateVar setReadlineName
startupHook = makeSettableStateVar setStartupHook
preInputHook = makeSettableStateVar setPreInputHook
eventHook = makeSettableStateVar setEventHook
redisplayFunction = makeSettableStateVar setRedisplayFunction
prompt = makeGettableStateVar getPrompt
libraryVersion = makeGettableStateVar getLibraryVersion
terminalName = makeGettableStateVar getTerminalName
inStream = makeGettableStateVar getInStream
outStream = makeGettableStateVar getOutStream
keymapByName nm = makeGettableStateVar (getKeymapByName nm)
keymapName km = makeGettableStateVar (getKeymapName km)
executingKeymap = makeGettableStateVar getExecutingKeymap
bindingKeymap = makeGettableStateVar getBindingKeymap
catchSignals = makeStateVar getCatchSignals setCatchSignals
catchSigwinch = makeStateVar getCatchSigwinch setCatchSigwinch
completionEntryFunction = makeSettableStateVar setCompletionEntryFunction
attemptedCompletionFunction = makeSettableStateVar setAttemptedCompletionFunction
filenameQuotingFunction = makeSettableStateVar setFilenameQuotingFunction
filenameDequotingFunction = makeSettableStateVar setFilenameDequotingFunction
charIsQuotedP = makeSettableStateVar setCharIsQuotedP
completionQueryItems = makeStateVar getCompletionQueryItems setCompletionQueryItems
basicWordBreakCharacters = makeStateVar getBasicWordBreakCharacters setBasicWordBreakCharacters
basicQuoteCharacters = makeStateVar getBasicQuoteCharacters setBasicQuoteCharacters
completerWordBreakCharacters = makeStateVar getCompleterWordBreakCharacters setCompleterWordBreakCharacters
completerQuoteCharacters = makeStateVar getCompleterQuoteCharacters setCompleterQuoteCharacters
filenameQuoteCharacters = makeStateVar getFilenameQuoteCharacters setFilenameQuoteCharacters
specialPrefixes = makeStateVar getSpecialPrefixes setSpecialPrefixes
completionAppendCharacter = makeStateVar getCompletionAppendCharacter setCompletionAppendCharacter
ignoreCompletionDuplicates = makeStateVar getIgnoreCompletionDuplicates setIgnoreCompletionDuplicates
filenameCompletionDesired = makeStateVar getFilenameCompletionDesired setFilenameCompletionDesired
filenameQuotingDesired = makeStateVar getFilenameQuotingDesired setFilenameQuotingDesired
inhibitCompletion = makeStateVar getInhibitCompletion setInhibitCompletion
attemptedCompletionOver = makeStateVar getAttemptedCompletionOver setAttemptedCompletionOver
ignoreSomeCompletionsFunction = makeSettableStateVar setIgnoreSomeCompletionsFunction
directoryCompletionHook = makeSettableStateVar setDirectoryCompletionHook
completionWordBreakHook = makeSettableStateVar setCompletionWordBreakHook
completionDisplayMatchesHook = makeSettableStateVar setCompletionDisplayMatchesHook
alreadyPrompted :: SettableStateVar Bool
attemptedCompletionFunction :: SettableStateVar
(Maybe (String -> Int -> Int -> IO (Maybe (String, [String]))))
attemptedCompletionOver :: StateVar Bool
basicQuoteCharacters :: StateVar String
basicWordBreakCharacters :: StateVar String
bindingKeymap :: GettableStateVar Keymap
catchSignals :: StateVar Bool
catchSigwinch :: StateVar Bool
charIsQuotedP :: SettableStateVar
(Maybe (String -> Int -> IO Bool))
completerQuoteCharacters :: StateVar String
completerWordBreakCharacters :: StateVar String
completionAppendCharacter :: StateVar (Maybe Char)
completionDisplayMatchesHook :: SettableStateVar
(Maybe ([String] -> IO ()))
completionEntryFunction :: SettableStateVar
(Maybe (String -> IO [String]))
completionQueryItems :: StateVar Int
completionWordBreakHook :: SettableStateVar
(Maybe (IO (Maybe String)))
directoryCompletionHook :: SettableStateVar
(Maybe (String -> IO String))
done :: SettableStateVar Bool
end :: StateVar Int
eraseEmptyLine :: SettableStateVar Bool
eventHook :: SettableStateVar (Maybe (IO ()))
executingKeymap :: GettableStateVar Keymap
filenameCompletionDesired :: StateVar Bool
filenameDequotingFunction :: SettableStateVar
(Maybe (String -> Maybe Char -> IO String))
filenameQuoteCharacters :: StateVar String
filenameQuotingDesired :: StateVar Bool
filenameQuotingFunction :: SettableStateVar
(Maybe
(String
-> Bool
-> Ptr CChar
-> IO String))
ignoreCompletionDuplicates :: StateVar Bool
ignoreSomeCompletionsFunction :: SettableStateVar
(Maybe ([String] -> IO [String]))
inStream :: GettableStateVar Handle
inhibitCompletion :: StateVar Bool
keymap :: StateVar Keymap
keymapByName :: String -> GettableStateVar Keymap
keymapName :: Keymap -> GettableStateVar (Maybe String)
libraryVersion :: GettableStateVar String
lineBuffer :: StateVar String
mark :: StateVar Int
outStream :: GettableStateVar Handle
pendingInput :: SettableStateVar Char
point :: StateVar Int
preInputHook :: SettableStateVar (Maybe (IO ()))
prompt :: GettableStateVar String
readLineName :: SettableStateVar String
redisplayFunction :: SettableStateVar (Maybe (IO ()))
specialPrefixes :: StateVar String
startupHook :: SettableStateVar (Maybe (IO ()))
terminalName :: GettableStateVar String