AWin32Console

A binding to a part of the ANSI escape code for the console

Latest on Hackage:1.1

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.

BSD3 licensed and maintained by Harald Wolfsgruber
Name: AWin32Console
Version: 1.1
Description: ANSI escape code
License: BSD3
License-file: LICENSE
Author: Harald Wolfsgruber


-- Library Files -------------

AWin32Console.hs
BWin32Console.c
BWin32Console.h
LICENSE
README


-- Functions -----------------

aPutStr :: String -> IO ()
aPutStrLn :: String -> IO ()


-- Usage ---------------------

aPutStrLn "\ESC[1;32mTest\ESC[0m"


-- Documentation -------------

Implemented:

ESC[#;...;#m set display attributes
ESC[0m reset display attributes

ESC[0J erase from cursor to end of display
ESC[1J erase from start to cursor
ESC[2J cls and cursor to (1,1)

ESC[0K delete to end of line
ESC[1K delete from start of line to cursor
ESC[2K delete whole line

ESC[#L insert # blank lines
ESC[#@ insert # blank characters
ESC[#M delete # lines
ESC[#P delete # characters

ESC[#A moves cursor up # lines
ESC[#B moves cursor down # lines
ESC[#C moves cursor forward # lines
ESC[#D moves cursor back # lines
ESC[#E moves cursor down # lines column 1
ESC[#F moves cursor up # lines column 1
ESC[#G moves cursor to column #

ESC[#;#H moves cursor to line #, column #
ESC[#;#f moves cursor to line #, column #

ESC[s saves the cursor position
ESC[u restores the cursor position
Depends on:
Used by 1 package:
comments powered byDisqus