Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.1 6/24/83; site digi-g.UUCP
Path: utzoo!watmath!clyde!burl!ulysses!mhuxj!ihnp4!stolaf!umn-cs!digi-g!mark
From: mark@digi-g.UUCP (Mark Mendel)
Newsgroups: net.sources.bugs
Subject: Kermit for IBM-PC minor bug fix.
Message-ID: <326@digi-g.UUCP>
Date: Sat, 20-Oct-84 14:06:37 EDT
Article-I.D.: digi-g.326
Posted: Sat Oct 20 14:06:37 1984
Date-Received: Sun, 21-Oct-84 15:39:54 EDT
Reply-To: mark@digi-g.UUCP (mark)
Organization: DigiGraphic Systems Corp., Mpls.  MN
Lines: 51

I discovered this bug in Heath. emulation in KERMIT for IBM-PC while using
vi on unix.  Vi now works just fine.  I have included a termcap for
kermit's emulator at the end of this article.

Symptom:
    A DELLIN command (^[M) on the last line of the window would scroll
    the status line into the window and place the cursor on the status line.

Fix:
    A DELLIN on the last line should merely clear the line.

    -- In MSYIBM.ASM replace:

dellin1 mov	ch,dh			; start at current row
	xor	cl,cl			; column 0
	mov	dx,low_rgt
;	mov	dx,174fh		; to bottom of screen
	mov	ah,6h			; scroll up.
	mov	bh,curattr		; attribute
	int	screen
	ret

    -- with:

dellin1:xor	dl,dl			;Always start at first column.
	cmp	dh,byte ptr low_rgt+1
	jg	nodel			; ignor if past end of window.
	je	clreol			; clear line if AT end of window.
	mov	ch,dh			; start at current row
	xor	cl,cl			; column 0
	mov	dx,low_rgt
;	mov	dx,174fh		; to bottom of screen
	mov	ah,6h			; scroll up.
	mov	bh,curattr		; attribute
	int	screen
nodel:	ret


-- The termcap:

km|kermit|kerm|kermit heathkit emulation:\
	:bs:cd=\EJ:ce=\EK:cm=\EY%+ %+ :co#80:li#24:nd=\EC:\
	:pt:sr=\EI:up=\EA:ku=\EA:kd=\EB:kr=\EC:kl=\ED:\
	:cl=\EE:al=\EL:dl=\EM:dc=\EN:im=\E@:ei=\EO:\
	:so=\Ep:se=\Eq:am:xt:\
	:is=\Ev:\
	:rs=\Ev:


					-- Mark Mendel
					-- ...ihnp4!umn-cs!digi-g!mark