[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ANSI escape character
From: |
Eli Zaretskii |
Subject: |
Re: ANSI escape character |
Date: |
Sun, 22 Feb 2009 00:38:14 +0200 |
> Date: Sat, 21 Feb 2009 16:53:44 -0300
> From: djalma nogueira schwindt <address@hidden>
> Cc:
>
> BEGIN{cor="\033[1;33;40m"
> printf "%s",cor
> print "awk string"
> }
>
> When run with version 3.0.6, the result is correct. It is shown only to
> literal "awk string" in yellow.
I don't know how did v3.0.4/6 do that, because the Windows terminal
does not recognize ANSI escape sequences. Perhaps whoever built the
binary of 3.0.4 made some special changes in Gawk to do this, or maybe
it wasn't a Windows port at all.
> But when I use the version 3.1.6, it shows:
>
> ←[1;33;40mawk string
>
> That is, the ANSI escape character is not interpreted.
I wouldn't expect anything else on Windows.