Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Aug 1998 13:37:15 -0700 (PDT)
From:      Doug White <dwhite@resnet.uoregon.edu>
To:        "Russell L. Carter" <rcarter@pinyon.org>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: ls -C output with bash botched
Message-ID:  <Pine.BSF.4.00.9808131336440.11633-100000@resnet.uoregon.edu>
In-Reply-To: <199808131922.MAA20233@Chuska.ConSys.COM>

next in thread | previous in thread | raw e-mail | index | archive | help

On Thu, 13 Aug 1998, Russell L. Carter wrote:

> Ok, I give up.  Time to be embarrassed.  Amazing
> newbie question, though I have been everywhere looking
> for a reference:
> 
> After resizing an xterm larger, ls outputs with the last column shifted way over,
> and the cursor no longer works correctly (look at "stats").  The cursor seems
> to jump past an area on the rhs of the screen:
> 
> rcarter@Chuska:/www/sites [112] /bin/ls chino
> about.html      business.html   events.html     images          info.html                           stats
> banner.html     chino.html      history.html    index.html      resource.html
> rcarter@Chuska:/www/sites [113] 
> 
> I resize the xterm again, this time smaller, and I get:
> 
> rcarter@Chuska:/www/sites [113] /bin/ls chino
> about.html      chino.html      images          resource.html
> banner.html     events.html     index.html      stats
> business.html   history.html    info.html
> rcarter@Chuska:/www/sites [114] 
> 
> which is as expected.
> 
> This is bash2, and yes there are terminal escape sequences 
> in the prompt but no they don't affect output of ls, i.e., 
> if I take them out I get the same result.
> 
> What gives?

You picked a bad width or the xterm didn't relay the SIGWINCH signal
correctly.  

Doug White                              | University of Oregon  
Internet:  dwhite@resnet.uoregon.edu    | Residence Networking Assistant
http://gladstone.uoregon.edu/~dwhite    | Computer Science Major


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.00.9808131336440.11633-100000>