🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.terminals
Article #1661

Re: tek 4015

#1661
From: ferg
Date: Tue, 07 Apr 1987 17:49
27 lines
1717 bytes
In article <612@batcomputer.tn.cornell.edu>, davidra@batcomputer.tn.cornell.edu (Penguin ) writes:
> ...
> Second, at least
> on the IBM RT-PC (BSD 4.2, IBM 6155 console) on which I have X,
> the VT102 emulation breaks for a window with more than 24 lines:
> the delete-line code seems not to work (to reproduce, make a window
> with more than 24 lines, make sure the environment TERMCAP entry 
> has been updated with xsize, and run a vi in the window.  Try to
> delete a line somewhere in the middle).
> 

This is a bug in vi (version 3.7 included with 4.2bsd).  If the terminal has
scroll regions defined, then it tries to delete lines from the screen by:
	- setting the scroll region to the first line to be deleted,
	  and the end-of-screen.
	- moving the cursor to line 24.
	- performing one line-feed for each line to be deleted.
The problem can be fixed by replacing the constant "24" with the variable 
containing the number of lines on the screen.

An alternative work-around, remove the scroll region stuff from the termcap
defination for xterm (the cs capability).

David Ferguson
NBI, Inc.
Boulder, Colorado
ferg@nbires.UUCP
Technical Details
Message-ID: <748@opus.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watnot!watmath!clyde!rutgers!seismo!nbires!opus!ferg
References: <612@batcomputer.tn.cornell.edu>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watnot!watmath!clyde!rutgers!seismo!nbires!opus!ferg
From: ferg@opus.UUCP
Newsgroups: comp.terminals
Subject: Re: tek 4015
Message-ID: <748@opus.UUCP>
Date: Tue, 7-Apr-87 12:49:40 EST
Article-I.D.: opus.748
Posted: Tue Apr  7 12:49:40 1987
Date-Received: Sat, 11-Apr-87 00:32:18 EST
References: <612@batcomputer.tn.cornell.edu>
Distribution: comp
Organization: NBI Inc., Boulder, CO.
Lines: 27
Keywords: tektronix rt ibm vi
Summary: bug in vi(1) not xterm