1{-# LANGUAGE BangPatterns #-}
2module BenchNoDiffOpt where
4{-# LANGUAGE BangPatterns #-}
8import Control.Concurrent( threadDelay )
9import Control.Monad( liftM2 )
11import qualified Data.ByteString.Char8 as B
12import Data.Default (def)
15import System.Environment( getArgs )
20 let fixed_gen = mkStdGen 0
23 (w,h) <- display_bounds $ output_iface vty
24 let images = return $ (image_0, image_1)
25 image_0 = char_fill def_attr 'X' w h
26 image_1 = char_fill def_attr '0' w h
28 flip_out vty 300 image_0 image_1
30 return $ Bench images bench
32flip_out vty n image_0 image_1 =
33 let !p_left = pic_for_image image_0
34 !p_right = pic_for_image image_1
36 w_left n = update vty p_left >> w_right (n-1)
38 w_right n = update vty p_right >> w_left (n-1)
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