Install ANSICON for coloured output

From Test Automation Wiki
Revision as of 14:00, 30 June 2016 by Gijsp (talk | contribs) (Created page with "* Download and unzip [https://github.com/downloads/adoxa/ansicon/ansi160.zip | ansi160.zip] * open cmd and navigate to the unzipped folder * Navigate to x64 (if you have a 64...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
  • Download and unzip | ansi160.zip
  • open cmd and navigate to the unzipped folder
  • Navigate to x64 (if you have a 64 bit machine) otherwise navigate to x86
  • Type ansicon.exe -h and you will get the following:
D:\Data\ansicon\x86>ansicon.exe -h
ANSICON by Jason Hood .
Version 1.32 (22 December, 2010).  Freeware.
http://ansicon.adoxa.cjb.net/

Process ANSI escape sequences in Win32 console programs.

ansicon -i|I | -u|U
ansicon [-m[]] [-p | -e|E string | -t|T [file(s)] | program [args]]

  -i            install - add ANSICON to the AutoRun entry (implies -p)
  -u            uninstall - remove ANSICON from the AutoRun entry
  -I -U         use local machine instead of current user
  -m            use grey on black ("monochrome") or  as default color
  -p            hook into the parent process
  -e            echo string
  -E            echo string, don't append newline
  -t            display files ("-" for stdin), combined as a single stream
  -T            display files, name first, blank line before and after
  program       run the specified program
  nothing       run a new command processor, or display stdin if redirected is one or two hexadecimal digits; please use "COLOR /?" for details.
  • Execute 'ansicon.exe -i' to install and add ansicon to your Windows
  • Run your cucumber test and you should get the coloured output result on Windows

source: http://qastuffs.blogspot.nl/2011/02/how-to-install-ansicon-for-cucumber-to.html