X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-6.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Message-ID: <4C3F6729.4070207@redhat.com> Date: Thu, 15 Jul 2010 13:53:13 -0600 From: Eric Blake User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100621 Fedora/3.0.5-1.fc13 Lightning/1.0b2pre Mnenhy/0.8.3 Thunderbird/3.0.5 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Colours used in mintty References: <4C3F26B5 DOT 5000606 AT bonhard DOT uklinux DOT net> <4C3F28E6 DOT 6090607 AT bopp DOT net> In-Reply-To: <4C3F28E6.6090607@bopp.net> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enigF5CA5402A47AC374F2A445DA" X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com --------------enigF5CA5402A47AC374F2A445DA Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable >> I am using >> >> echo $'\e]4;3;255, 0, 0\a' # color3 for devices >=20 > 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] --=20 Eric Blake eblake AT redhat DOT com +1-801-349-2682 Libvirt virtualization library http://libvirt.org --------------enigF5CA5402A47AC374F2A445DA Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/ iQEcBAEBCAAGBQJMP2cvAAoJEKeha0olJ0NqdhIH/2FCLFGTtkw360lnIm+GVT7u cPg4aBtdDfHgAEnyZvd0yofOKeyN1CEQm7SRUqASf/j/jttHbSx2Uhb5zh1RHcFw hFQjMBMovhb12Prj6wT/jVnf+miq5r6KwiM6OE6Quetd7ELkjt94XPfrx/IEN+5J EiuvgYJm2jgiC6ZwJRfsD2yj1nHu3gTHOo7YJ3Fqde1Y94z9k7+0qaG3UnPJ0kZi Iba0JwmxwUS1ODoJZdUT1qkjZtg/hNtv2kqRqYojBJVTohLrr6CiFcMTB2dnapxs tdZ/FbJc+KZ7Bz+LXAOaS5T3Xz3GclGhLFad6Rh1MCA4IeXGHBqFMUN/5yt7jXw= =dFdu -----END PGP SIGNATURE----- --------------enigF5CA5402A47AC374F2A445DA--