[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Readline versus wide xterms

On Wed, Oct 10, 2001 at 09:04:35PM -0700, Jeffrey W. Baker wrote:
> On Wed, 10 Oct 2001, Karsten M. Self wrote:
> > on Wed, Oct 10, 2001 at 03:39:23PM -0700, Jeffrey W. Baker (jwbaker@acm.org) wrote:
> > > Does anyone know what it is that makes readline eat itself when a terminal
> > > is very wide?
> > >
> > > Example: make an xterm 120 chars wide.  Type in some long command that
> > > spans more than one line.  Now up arrow to the prev command and back arrow
> > > through it.  You'll notice that the display gets out of sorts.
> >
> > It's usually a bash prompt issue.  You got anything funky in there,
> > particularly nonprintable color or highlight directives?
> My prompt is $ for users and # for root.
> I see this particular problem with any readline program: bash, mysql,
> pgsql, perl -MCPAN -eshell, ...

hmm. i use 132 (wide) x 30 (high) for my rxvt and i only notice
this symptom (as i understand your description) with shell
prompts where the prompt has colorization or title-bar-set
escape sequences built-in.

oops. i just tried it (my current tcsh prompt string is
%{^O\e[44;37;1m%}%n:%{\e[37;40m%} %~%{\e[0m%}%# so it gets quite
hairy in spots) and the display worked like an intuitive CHAMP!
even with embedded tabs (^V^I) and wraparound, and uparrow,
leftarrow, downarrow, etc. also worked fine in psql (which has a
very elemental prompt, no escape sequences at all).

one of us has a goofy setting somewhere. (i'm using potato...)

[really, i have noticed what i think you're talking about, but
right now i can't replicate the symptom. odd!]

DEBIAN NEWBIE TIP #80 from USM Bish <bish@nde.vsnl.net.in>
Some common abbreviations used in lists:
IMHO  = In My Humble Opinion   IMO   = In My Opinion
BTW   = By The Way             AFAIK = As Far As I Know
RTFM  = Read The #$%&@! Manual IOW   = In Other Words
HAND  = Have A Nice Day        YMMV  = Your Mileage May Vary  
My Bad  = Sorry, my mistake    HTH   = Hope This Helps

Also see http://newbieDoc.sourceForge.net/ ...

Reply to: