vty/test/ControlTable.hs
coreyoconnor 7b38759846 use alloca instead of mallocBytes for exception safety
Ignore-this: 1d31bef2e227fefafe8bb4b6f9511e1d

darcs-hash:20090904172928-f0a0d-987b6931294fd33f7825eddc0adf04c81716a4dd.gz
2009-09-04 10:29:28 -07:00

15 lines
502 B
Haskell

module Main where
import Graphics.Vty.ControlStrings
import System.Console.Terminfo
main = do
terminal <- setupTermFromEnv
control_table <- init_control_table terminal
putStrLn $ "ANSI terminal show cursor string: " ++ show cvis
putStrLn $ "Current terminal show cursor string: " ++ show (show_cursor_str control_table)
putStrLn $ "ANSI terminal hide cursor string: " ++ show civis
putStrLn $ "Current terminal hide cursor string: " ++ show (hide_cursor_str control_table)