ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

Main Area and Open Discussion > General Software Discussion

Gnu grep how can I get colored output in ms concole?

(1/2) > >>

kartal:
I cannot seem to get colored output from Gnu Grep. I tried the color option maybe standard ms console does not support such thing. Does anyone know a solution?

MilesAhead:
Seems ansi.sys isn't installed on Vista.  You may have to run bash shell and use --color option on the grep command. I know I had ls output with color so there must be a way to do it.  It's been a few years though. There should be a way to set up an alias in bash so that the --color param is appended automatically.  Something like:  grep=grep --color  and ls=ls --color   plus whatever other default params you want to stick on.

See bash win32 docs for alias commands



rjbull:
You could try third-party Windows-ised ANSI programs, like the ones by Jason Hood, or ANSIPlus by Kris Sweger.

kartal:
Thanks people, I will check out these stuff.

f0dder:
Being a DOS application/device driver, ANSIPLUS doesn't sound like something that'll work (properly) with NT-based operating systems?

Navigation

[0] Message Index

[#] Next page

Go to full version