Skip to content

Commit

Permalink
defaultMain: shut down Vty handle returned by customMainWithDefaultVty
Browse files Browse the repository at this point in the history
  • Loading branch information
jtdaugherty committed Nov 10, 2023
1 parent d7565bc commit b8c7afc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Brick/Main.hs
Expand Up @@ -131,8 +131,10 @@ defaultMain :: (Ord n)
-> s
-- ^ The initial application state.
-> IO s
defaultMain app st =
fst <$> customMainWithDefaultVty Nothing app st
defaultMain app st = do
(s, vty) <- customMainWithDefaultVty Nothing app st
shutdown vty
return s

-- | A simple main entry point which takes a widget and renders it. This
-- event loop terminates when the user presses any key, but terminal
Expand Down

1 comment on commit b8c7afc

@ShrykeWindgrace
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yay!

Please sign in to comment.