Skip to content

Commit

Permalink
Merge pull request #6 from vimuel/patch-1
Browse files Browse the repository at this point in the history
Reset terminal at the end of `handleNode`
  • Loading branch information
psibi committed Nov 27, 2017
2 parents 6ca5754 + 3b849e6 commit b55a334
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Tldr.hs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ handleNode (Node _ ntype xs) = do
changeConsoleSetting ntype
renderNode ntype
mapM_ (\(Node _ ntype' ns) -> renderNode ntype' >> mapM_ handleNode ns) xs
setSGR [Reset]

parsePage :: FilePath -> IO Node
parsePage fname = do
Expand Down

0 comments on commit b55a334

Please sign in to comment.