From muir@idiom.com  Thu May  9 21:44:48 1996
Received: from idiom.com (idiom.com [140.174.82.4])
          by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id VAA27644
          for <FreeBSD-gnats-submit@freebsd.org>; Thu, 9 May 1996 21:44:47 -0700 (PDT)
Received: (from muir@localhost) by idiom.com (8.6.12/8.6.12) id VAA29597; Thu, 9 May 1996 21:44:46 -0700
Message-Id: <199605100444.VAA29597@idiom.com>
Date: Thu, 9 May 1996 21:44:46 -0700
From: David Muir Sharnoff <muir@idiom.com>
Reply-To: muir@idiom.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: ls + xterm + nvi + tcsh + columns != 80 + ^Z = mangled listing
X-Send-Pr-Version: 3.2

>Number:         1184
>Category:       bin
>Synopsis:       ls + xterm + nvi + columns != 80 + ^Z = mangled listing
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    scrappy
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu May  9 21:50:02 PDT 1996
>Closed-Date:    Sat Apr 11 11:14:37 PDT 1998
>Last-Modified:  Sat Apr 11 11:16:25 PDT 1998
>Originator:     David Muir Sharnoff
>Release:        FreeBSD 2.1-STABLE i386
>Organization:
Idiom Consulting
>Environment:

	FreeBSD 2.1-stable as of a couple month's ago

>Description:

	If I ^Z out of nvi on a resized xterm, ls output is 
	mangled.

>How-To-Repeat:

	fire up an xterm
	resize it to > 80 columns
	run tcsh
	invoke nvi
	suspend nvi
	do an ls(1) on a non-trivial directory.

	I don't know if all of the above components are required: they
	are what I've got so...

>Fix:
	
	alias ls 'stty -tabs; ls'

	:-)

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->scrappy 
Responsible-Changed-By: scrappy 
Responsible-Changed-When: Mon May 27 00:15:31 PDT 1996 
Responsible-Changed-Why:  
add to things to check about vi 
State-Changed-From-To: open->closed 
State-Changed-By: phk 
State-Changed-When: Sat Apr 11 11:14:37 PDT 1998 
State-Changed-Why:  
This is because the tabs are not initialized for more 
than the first 80 char.  use "stty oxtabs" to avoid 
relying on tabstops being set correctly.  Maybe something 
should be done about xterm, doing it otherwise is close to 
impossible. 
>Unformatted:
