This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Console width


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]