[net.micro.pc] Kermit Omission & Bug Fix

RPK.RPS%MIT-OZ%MIT-MC@sri-unix.UUCP (05/26/83)

From:  Rob Stanzel <RPK.RPS%MIT-OZ@MIT-MC>

I've recently downloaded the "Field Test" Kermit from ISIB, and it's a
winning system.  Two things caught my eye: Horizontal Tabs aren't
handled at all (they appear as the PC Extended Ascii character) and a
bug in the COMND simulation.  For what it's worth, the problems occur
on a PC with DOS 2.0 and Expansion Unit.

The last user-typed character of a completed command is lost; i.e.
"rec$" -> "reEIVE" ($ is the ESCape character).  I don't have a fix
for this yet.

Tab chars are handled with this fix: in the telnoe loop, add the test
for a tab character:

telx:   ...
	cmp al,09H	;test for tabchar
	jne nottab
	call tabchr
	jmp telnoe
nottab:
	cmp al,bell	;this is the existing code
	...

The routine itself:

TABCHR	PROC	NEAR
	mov ah,3	;get current position
	mov bh,0
	int bios
	add dl,8	;next field
	cmp dl,80	;at edge of screen?
	jl  tabch1
	mov dl,0	;yes, so punt
tabch1: and dl,0F8H	;clear lower bits (stop every 8 postions)
	mov ah,2	;set cursor position
	int bios
	ret
TABCHR	ENDP

[This fix has been added to the version on <Info-IBMPC> - Ed.]