delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/03/30/15:21:46

X-Recipient: archive-cygwin AT delorie DOT 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 AT redhat DOT 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 AT cygwin DOT com, "Roe, Kevin L." <roe2 AT llnl DOT gov>
Subject: Re: spaces in title of mintty command
References: <C742AC34C772EC4BAAF642C22E6079D301211253F002 AT NSPEXMBX-A DOT the-lab DOT llnl DOT gov> <416096c61003301154m5fe3ad27t52114493d7b85240 AT mail DOT gmail DOT com> <C742AC34C772EC4BAAF642C22E6079D301211253F03F AT NSPEXMBX-A DOT the-lab DOT llnl DOT gov>
In-Reply-To: <C742AC34C772EC4BAAF642C22E6079D301211253F03F@NSPEXMBX-A.the-lab.llnl.gov>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT 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 AT redhat DOT 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--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019