mirror of
https://github.com/ilyakooo0/vty.git
synced 2024-11-30 02:13:36 +03:00
f6c3cbfa01
Ignore-this: e82f6a3b8eec33ab55fd04a51f4d9873 darcs-hash:20091228233218-f0a0d-345ddcbee616acc4f39d9d12393bdea5982f34d9.gz
13 lines
314 B
Haskell
13 lines
314 B
Haskell
module Main where
|
|
import Graphics.Vty
|
|
import Control.Exception
|
|
|
|
catchLog = handle (\except -> do putStrLn $ show (except :: IOException))
|
|
|
|
main = do
|
|
vty <- mkVty
|
|
catchLog $ update vty pic { pImage = empty, pCursor = NoCursor }
|
|
catchLog $ update vty pic { pImage = empty, pCursor = NoCursor }
|
|
shutdown vty
|
|
|