delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/07/04/10:26:37

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
Message-Id: <5.1.0.14.0.20010704101732.02dfba70@mail>
X-Sender: superbiskit AT mail
X-Mailer: QUALCOMM Windows Eudora Version 5.1
Date: Wed, 04 Jul 2001 10:19:40 -0400
To: Randall R Schulz <rrschulz AT cris DOT com>,
Sandeep Tamhankar <sandman AT Interwoven DOT com>,
Cygwin General MailList <cygwin AT cygwin DOT com>
From: "David A. Cobb" <superbiskit AT home DOT com>
Subject: Re: Trouble in RXVT with line wrap
In-Reply-To: <5.1.0.14.2.20010703174151.0279f238@pop3.cris.com>
References: <3B425069 DOT 6040200 AT Interwoven DOT com>
<5 DOT 1 DOT 0 DOT 14 DOT 0 DOT 20010703173051 DOT 030d7a90 AT mail>
Mime-Version: 1.0

At 7/3/01 08:47 PM (Tuesday), Randall R Schulz wrote:
>Hi,
>
>Here's a little more on the promt business. It has proved popular with
>fellow nerds in my office:
>
>My PS1 for any terminal (emulator) that supports it (xterm, xterm-color,
>vt100, vt102, vt220, cytwin, at least) is this:
>
>
>PS1=$'\[\e]0; \u :: \W (\w)\a\]\!> '
># Note:
>#  This sequence:
>#  ESC]0;
>#      ^ zero
>#  Starts the title setting sequence. Everything from there to
>#  the CTRL-G (also "\a" within $'...') is put in the window title.
>#  Some terminal emulators (notably TeraTerm) put a pretty stingy
>#  limit on how much they'll display, but you don't have to limit
>#  the length you attempt to put there

Yes!  Works as advertised and it's a thing of beauty.

But isn't it still a bug in bash (or bash's in-built subset of readline)?



>I don't mind the information typically put into prompts, but I _hate_ to
>have it literally in the prompt!
>
>Randall

David A. Cobb, Software Engineer, Public Access Advocate, All around nice guy.
Get my PGP key at
:<http://pgpkeys.mit.edu:11371/pks/lookup?op=get&search=superbiskit>
Fingerprint=0x{6E3E_DB8C_2E8C_4248_62B2_FE29_08EE_CF0A_3629_E954}
:<http://wwwkeys.pgp.net:11371/pks/lookup?op=get&search=superbiskit&fingerprint=on>
"By God's Grace I am a Christian man, by my actions a great sinner."
--The Way of a Pilgrim, R. M. French [tr.]
Potentially Viral Software is any software for which you are not allowed
to examine the source.  Do not buy or use Potentially Viral Software!
<---.----!----.----!----.----!----.----!----.----!----.----!----.---->


--
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/

- Raw text -


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