summaryrefslogtreecommitdiffstats
path: root/test1.hs
diff options
context:
space:
mode:
authortv <tv@shackspace.de>2014-12-19 20:42:38 +0100
committertv <tv@shackspace.de>2014-12-19 20:42:38 +0100
commit4299cd382b10947a8a79e586f95d38823aaa9597 (patch)
tree86bb8127d0c2a72932baca9d1aa2826ea1d4dd77 /test1.hs
initial commit
Diffstat (limited to 'test1.hs')
-rw-r--r--test1.hs14
1 files changed, 14 insertions, 0 deletions
diff --git a/test1.hs b/test1.hs
new file mode 100644
index 0000000..43f3098
--- /dev/null
+++ b/test1.hs
@@ -0,0 +1,14 @@
+import Data.Default
+import Graphics.Vty
+
+
+main = do
+ vty <- mkVty def
+ let line0 = string (def withForeColor $ ISOColor 3) "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