mirror of
https://github.com/GaloisInc/cryptol.git
synced 2025-01-05 23:17:42 +03:00
Allow \ line continuation at REPL on Windows
This commit is contained in:
parent
6d2709748e
commit
d6f3497392
@ -99,7 +99,7 @@ getInputLines :: String -> InputT REPL NextLine
|
||||
getInputLines = handleInterrupt (MTL.lift (handleCtrlC Interrupted)) . loop []
|
||||
where
|
||||
loop ls prompt =
|
||||
do mb <- getInputLine prompt
|
||||
do mb <- fmap (filter (/= '\r')) <$> getInputLine prompt
|
||||
let newPropmpt = map (\_ -> ' ') prompt
|
||||
case mb of
|
||||
Nothing -> return NoMoreLines
|
||||
|
Loading…
Reference in New Issue
Block a user