The AWin32Console package

[Tags: bsd3, library]

ANSI escape code


[Skip to ReadMe]

Properties

Version1.1
Change logNone available
Dependenciesbase (==4.*), regex-compat, Win32 [details]
LicenseBSD3
AuthorHarald Wolfsgruber
MaintainerHarald Wolfsgruber
CategorySystem
UploadedSun Jan 24 23:44:07 UTC 2010 by HaraldWolfsgruber
Downloads336 total (13 in last 30 days)
Votes
0 []
StatusDocs not available [build log]
All reported builds failed [all 1 reports]

Modules

Downloads

Maintainers' corner

For package maintainers and hackage trustees

Readme for AWin32Console-1.1

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