Skip to content

Commit

Permalink
Reset terminal at the end of handleNode
Browse files Browse the repository at this point in the history
  • Loading branch information
Vilem authored Nov 26, 2017
1 parent 6ca5754 commit 3b849e6
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 3b849e6

Please sign in to comment.