Hi Tidalss people Is it possible to show a text in an output console panel? For example, this one used by Kindohm in this video.
I want to make a sort of dialogue with the people watching the screen.
Thanks a lot!
Hi Tidalss people Is it possible to show a text in an output console panel? For example, this one used by Kindohm in this video.
I want to make a sort of dialogue with the people watching the screen.
Thanks a lot!
I am not a Haskeller, but I tried to reverse engineer this and I found some inspiration from this Reddit post.
newtype NoQuotes = NoQuotes String
instance Show NoQuotes where show (NoQuotes str) = str
prettyPut s = putStr . show $ NoQuotes s
flood s = mapM_ prettyPut $ replicate 10 s
and then you call it!
*Main> flood "hey. "
hey. hey. hey. hey. hey. hey. hey. hey. hey. hey.
If you really want to flood the terminal we should set the no. of replicas to, say, 100?
I hope it helps!
That works perfectly but you don't really need to deal with 'show', you can just do:
flood = putStrLn . concat . replicate 10