mirror of
https://github.com/redelmann/scat
synced 2025-01-10 06:34:20 +01:00
Fixed bug: Scat did not respect the --silent flag during code erasure.
This commit is contained in:
parent
e27df25307
commit
ea80ccb678
@ -105,7 +105,8 @@ prompt vis str = do
|
||||
(hSetEcho stdin $ shouldShow vis)
|
||||
(hSetEcho stdin old)
|
||||
C.getLine
|
||||
when (shouldErase vis) $ liftIO $ do
|
||||
v <- fmap verbose ask
|
||||
when (shouldErase vis && v) $ liftIO $ do
|
||||
cursorUpLine 1
|
||||
cursorForward $ length str
|
||||
clearFromCursorToScreenEnd
|
||||
|
Loading…
Reference in New Issue
Block a user