2009-09-04 21:29:28 +04:00
|
|
|
module Main where
|
|
|
|
|
|
|
|
import Graphics.Vty.ControlStrings
|
|
|
|
|
|
|
|
import System.Console.Terminfo
|
|
|
|
|
|
|
|
main = do
|
2017-01-22 09:21:58 +03:00
|
|
|
terminal <- setupTermFromEnv
|
2014-04-12 04:51:13 +04:00
|
|
|
controlTable <- init_controlTable terminal
|
2009-09-04 21:29:28 +04:00
|
|
|
putStrLn $ "ANSI terminal show cursor string: " ++ show cvis
|
2014-04-12 04:51:13 +04:00
|
|
|
putStrLn $ "Current terminal show cursor string: " ++ show (showCursorStr controlTable)
|
2009-09-04 21:29:28 +04:00
|
|
|
putStrLn $ "ANSI terminal hide cursor string: " ++ show civis
|
2014-04-12 04:51:13 +04:00
|
|
|
putStrLn $ "Current terminal hide cursor string: " ++ show (hideCursorStr controlTable)
|
2009-09-04 21:29:28 +04:00
|
|
|
|