Subject: bin/1170: Vi/stty rows/cols problem
To: None <gnats-admin@sun-lamp.pc.cs.cmu.edu>
From: System Operator <operator@testfw.gts.net>
List: netbsd-bugs
Date: 06/28/1995 16:20:04
>Number: 1170
>Category: bin
>Synopsis: Vi misbehaves after stty rows n cols 0
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people (Utility Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Jun 28 16:20:03 1995
>Originator: System &
>Organization:
Toronto Free-Net
>Release: June 23
>Environment:
System: NetBSD testfw 1.0A NetBSD 1.0A (TESTFW) #1: Tue Jun 27 18:20:14 EDT 1995 operator@testfw:/var/src/sys/arch/i386/compile/TESTFW i386
>Description:
If the terminal size in the tty structure is defined as nonzero number of
rows, and zero columns, then vi misbehaves. In particular:
- lines are erased when cursor moves
- redraw does not refresh the screen
- command line is at top of screen
>How-To-Repeat:
Log in, then:
stty rows 44 cols 0
(typically you get here after telnetting, and stty rows 40)
vi foo, where foo is any file
Use 'j' key to move cursor down. Lines above the cursor are erased!
Use '^L' to refresh the screen. The display is not cleaned up.
Use ':wq' to get out. Note that command line is at top of screen, not
at bottom.
If you are using stty rows 0 cols 0, then vi works OK using whatever
terminal size is defined in termcap. If using stty rows n cols n, then
it also works, using the values you set.
stty rows n cols 0 works OK under earlier versions of NetBSD and SunOS.
>Fix:
>Audit-Trail:
>Unformatted: