X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-6.9 required=5.0 	tests=BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-ID: <4BB25D04.6090703@redhat.com>
Date: Tue, 30 Mar 2010 14:20:20 -0600
From: Eric Blake <eblake@redhat.com>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8) Gecko/20100301 Fedora/3.0.3-1.fc12 Lightning/1.0b1 Thunderbird/3.0.3
MIME-Version: 1.0
To: cygwin@cygwin.com, "Roe, Kevin L." <roe2@llnl.gov>
Subject: Re: spaces in title of mintty command
References: <C742AC34C772EC4BAAF642C22E6079D301211253F002@NSPEXMBX-A.the-lab.llnl.gov>  <416096c61003301154m5fe3ad27t52114493d7b85240@mail.gmail.com> <C742AC34C772EC4BAAF642C22E6079D301211253F03F@NSPEXMBX-A.the-lab.llnl.gov>
In-Reply-To: <C742AC34C772EC4BAAF642C22E6079D301211253F03F@NSPEXMBX-A.the-lab.llnl.gov>
Content-Type: multipart/signed; micalg=pgp-sha1;  protocol="application/pgp-signature";  boundary="------------enig9CC8B585CFADCD5663864848"
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

--------------enig9CC8B585CFADCD5663864848
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On 03/30/2010 02:13 PM, Roe, Kevin L. wrote:
> I played with the default prompt to understand how it got the titlebar wo=
rking because mine didn=E2=80=99t.  I figured out which part does it:
> \[\e]0;$(pwd)\a\]\n=20
> Where:
> \[
Tell bash that you are starting a sequence of non-printing characters,
that should not affect layout of the prompt within your terminal.

> \e]0;    starts it

Start of terminal control command sequence.  \e is also \033.

> And:
> \a

End of terminal control command sequence.  \a is also \007.

> \]

Tell bash that you are done with non-printing characters.

> \n     ends it

Actually, that's part of your literal prompt, and has nothing to do with
the terminal title.

> And everything in between:
> $(pwd)     is the title=20
>=20
> But I couldn't find references to those character sequences anywhere.  Co=
uld you explain what they mean?

Then you didn't search in the right places.
http://www.faqs.org/docs/Linux-mini/Xterm-Title.html
This is not cygwin-specific.

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


--------------enig9CC8B585CFADCD5663864848
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAkuyXQcACgkQ84KuGfSFAYDuHgCdFG560QVm0F5fNPqlhrHoF6mm
3jUAn0mpcupDXA/EIvxsR2NXTU4MIT4l
=jXJ9
-----END PGP SIGNATURE-----

--------------enig9CC8B585CFADCD5663864848--
