delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/03/06/12:05:42

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: <3AA5170B.D80867E2@home.com>
Date: Tue, 06 Mar 2001 11:57:47 -0500
From: "David A. Cobb" <superbiskit AT home DOT com>
X-Mailer: Mozilla 4.75 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Randall R Schulz <rschulz AT teknowledge DOT com>
CC: Cygwin General MailList <cygwin AT cygwin DOT com>
Subject: Re: Console width
References: <5 DOT 0 DOT 2 DOT 1 DOT 2 DOT 20010302100538 DOT 02e24688 AT ks DOT teknowledge DOT com>

Randall R Schulz wrote:

> David,
>
> The typical reason for this is that your prompt contains characters that
> don't directly render onto the line. BASH (well, the readline library it
> uses) keeps track of where the cursor is on the line (whose length it knows
> via the tty driver) so it can wrap the input. If the output from the shell
> prompt string contains, say, 18 bytes but ends up moving the cursor only 8
> spaces from the left margin, then readline will thing the cursor is 10
> bytes further to the right than it really is and will prematurely wrap the
> line as you type.

I should have confirmed earlier, sorry.  Yes, this applies.  I'll mess around
with it a bit.  Thanks.
--
David A. Cobb, The Superbiskit !
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}
"By God's Grace I am a Christian man, by my actions a great sinner."
--The Way of a Pilgrim, R. M. French [tr.]
<---.----!----.----!----.----!----.----!----.----!----.----!----.---->



--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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