mirror of
https://github.com/ilyakooo0/vty.git
synced 2024-12-01 14:36:27 +03:00
15 lines
369 B
Haskell
15 lines
369 B
Haskell
module Main where
|
|
|
|
import Graphics.Vty
|
|
|
|
main = do
|
|
vty <- mkVty defaultConfig
|
|
let line0 = string (def `withForeColor` green) "first line"
|
|
line1 = string (def `withBackColor` blue) "second line"
|
|
img = line0 <-> line1
|
|
pic = picForImage img
|
|
update vty pic
|
|
e <- nextEvent vty
|
|
shutdown vty
|
|
print $ "Last event was: " ++ show e
|