[net.sources.bugs] Kermit for IBM-PC minor bug fix.

mark@digi-g.UUCP (Mark Mendel) (10/20/84)

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