Read and respond to this message at: 
https://sourceforge.net/projects/gnuwin32/forums/forum/74807/topic/3796156
By: keithmarshall

> I would assume that an update to version 2.63
> from the current 2.54 version might help. 

Maybe; maybe not.  It works fine for me, with my MSYS version of grep:

$ grep --version
GNU grep 2.5.4

$ cat <<EOF> a.txt
this
is
a
test
EOF

$ grep -n --color=always test a.txt
4:test   <"test" appears here in red>

What is apparent in the OP's post is that grep is emitting ANSI terminal control
sequences to control colour.  A standard Windows console doesn't know how to
interpret those, so we see the raw control codes in the output.  MSYS provides
its own terminfo emulation layer, to translate those ANSI codes into the 
appropriate
Windows console API function calls; perhaps your DJGPP variant does something
similar?

BTW, it is the existence of the terminfo emulation layer which allows the MSYS
implementation of GNU "info" to run successfully, when -- last time I looked
-- the GnuWin32 implementation just says "terminal is too dumb to run info".

_____________________________________________________________________________________
You are receiving this email because you elected to monitor this topic or 
entire forum.
To stop monitoring this topic visit: 
https://sourceforge.net/projects/gnuwin32/forums/forum/74807/topic/3796156/unmonitor
To stop monitoring this forum visit: 
https://sourceforge.net/projects/gnuwin32/forums/forum/74807/unmonitor

------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
GnuWin32-Users mailing list
GnuWin32-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnuwin32-users

Reply via email to