mirror of
https://github.com/ilyakooo0/vty.git
synced 2024-11-29 08:49:40 +03:00
14 lines
315 B
Haskell
14 lines
315 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
|
|
|