Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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" X-Mailer: Mozilla 4.75 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Randall R Schulz CC: Cygwin General MailList Subject: Re: Console width References: <5 DOT 0 DOT 2 DOT 1 DOT 2 DOT 20010302100538 DOT 02e24688 AT ks DOT teknowledge DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 : 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