If this is only one line, you can use \r to fast forward the cursor to the beginning of the line.
Here is an example:
import Control.Concurrent import Control.Monad import Text.Printf main :: IO () main = do forM_ [10, 9 .. 1] $ \seconds -> do printf "\rLaunching missiles in %2d..." (seconds :: Int) threadDelay $ 1 * 1000 * 1000 putStrLn "\nBlastoff!"
source share