Colours used in mintty

Eric Blake eblake@redhat.com
Fri Jul 16 00:16:00 GMT 2010


>> I am using
>>
>> echo $'\e]4;3;255,  0,  0\a' # color3 for devices
> 
> Have you tried using "echo -n"?

Don't get in the habit.  Use printf(1) instead:

printf %s %'\e]4;3;255,  0,  0\a'

echo(1) is non-portable when it comes to options, and 'echo -n' will not
behave the same on all shells; you are better off learning the portable
alternative up front, in case you run into a situation where you aren't
using bash.

[I'll leave the fact that $'' is also a non-portable bash-ism for
another discussion]

-- 
Eric Blake   eblake@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://cygwin.com/pipermail/cygwin/attachments/20100716/6a01c64f/attachment.sig>


More information about the Cygwin mailing list