1{-# LANGUAGE FlexibleContexts #-}
3{-# LANGUAGE LambdaCase #-}
4{-# LANGUAGE RankNTypes #-}
6import Control.Monad.IO.Class
8import qualified Graphics.Vty as V
12guest :: forall t m. VtyApp t m
14 now <- liftIO getCurrentTime
15 ticks <- fmap show <$> tickLossy 1 now
16 let shutdown = fforMaybe e $ \case
17 V.EvKey V.KEsc _ -> Just ()
19 picture <- hold (V.picForImage $ V.string mempty "Initial") $ V.picForImage . V.string mempty <$>
20 leftmost [show <$> e, show <$> ticks]
22 { _vtyResult_picture = picture
23 , _vtyResult_shutdown = shutdown
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list