| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
| List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT sources DOT redhat DOT com |
| Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
| To: | "Peoter Veliki" <peoter_veliki AT hotmail DOT com> |
| Cc: | <cygwin AT cygwin DOT com> |
| Subject: | Re: placing title in cygwin window |
| References: | <3BA929D0 DOT 15327 DOT 2F5FE81C AT localhost> |
| <OE708rBKXGA7zyWR4At0000bdf7 AT hotmail DOT com> | |
| From: | Andrew Markebo <flognat AT flognat DOT myip DOT org> |
| Date: | 20 Sep 2001 00:06:24 +0200 |
| In-Reply-To: | <OE708rBKXGA7zyWR4At0000bdf7@hotmail.com> |
| Message-ID: | <m3itee4yzj.fsf@localhost.localdomain> |
| Lines: | 25 |
| User-Agent: | Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 |
| MIME-Version: | 1.0 |
/ "Peoter Veliki" <peoter_veliki AT hotmail DOT com> wrote:
| I seem to just have a title that includes the path, such as ~. I need to
| have a title, don't ask why. How can I add one?
Do a prompt something like:
PROMPT=3D"%{=1B];%m:%~=07%}%n@%m:%.<%?> "
It is a bunch of escapes there telling the terminal to put a string in
the title.. Doublecheck when you add it to your login-script that ^[
is ascii 27 and ^G is the ascii for control-g.. whatever it is.. For
more fun, add a, printing the time out to the right..=20
RPROMPT=3D'%(t.DING!.%D{%H:%M})'
/Andy
p.s. included as a text-file in a zip so you can hopefully use so we
are sure we get the correct escapes..=20
--=-=-=
Content-Type: application/zip
Content-Disposition: attachment; filename=t.zip
Content-Transfer-Encoding: base64
Content-Description: Nifty prompts
UEsDBBQAAAAIAJwANCsOjZo3PQAAAEMAAAAFABUAdC50eHRVVAkAA4cWqTuHFqk7VXgEAPQB9AEL
Cgjy9w0IsVVX1SjRc/H0c1fUU3WpVvWwUvWt1VTngsoqqVZLx1qr5lqp1rGr1qrmOYCYejaq9nYK
SlwAUEsBAhcDFAAAAAgAnAA0Kw6Nmjc9AAAAQwAAAAUADQAAAAAAAQAAAKSBAAAAAHQudHh0VVQF
AAOHFqk7VXgAAFBLBQYAAAAAAQABAEAAAAB1AAAAAAA=
--
The eye of the beholder rests on the beauty!
--=-=-=
Content-Type: text/plain; charset=us-ascii
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
--=-=-=--
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |