[comp.protocols.tcp-ip.ibmpc] NCSA telnet VT100/VT102 patch

PKLAMMER@CUDNVR.DENVER.COLORADO.EDU (Pete Klammer 303/556-3915) (02/07/91)

Since NCSA has not found it in their hearts to fix this, here is a patch.

Problem:  NCSA telnet responds to the "what are you?" query (e.g.,
from VMS command 'SET TERM /INQUIRE') with "<ESC>[?6C", which means,
"I am a VT102."  Unfortunately, this is not completely true, since
real VT102's support insert/delete-character commands, and NCSA don't.

Symptom:  Text editors and other programs that believe NCSA and use
full VT102 functions produce screwed-up screens with NCSA telnet.  In
particular, GNU Emacs text type-ins look overtyped when they should be
inserted, and repeated screen-refreshing (CTRL/L) is required to see
what is really going on.

Cure:  Change NCSA telnet code to respond "I am a VT100" ("<ESC>[?1c")
or else improve terminal emulator code to support full VT102 functions.

Workaround:  Patch TELBIN.EXE to reply with "1" instead of "6".
	C> copy telbin.exe *.new	(work on a separate copy)
	C> debug telbin.new	(debug treats .EXE differently)
	- rds		(we need to look beyond the first 64K segment)
	DS 1234		(a 4-digit number is displayed)
	: 3234		(add $2000 to this number and type that in)
	-s 0 ffff "[?6c"	(search for this text)
	3234:FA94	(a segment:offset address is displayed)
	-e fa96		(add $2 to the offset, where the "6" is)
	FA96: 36.31	(type in 31 which is hex for ASCII "1")
	-w		(write file back out)
	-q		(congratulations)
	C> ren telbin.exe *.org		(save the original, in case...)
	C> ren telbin.new *.exe		(you now have a VT100 NCSA telnet)

--poko "Eesti vabaks/free Estonia!" Pete Klammer (303)556-3915 FAX(303)556-4822
CU-Denver Computing Services, AHEC Box#169   /         PKLAMMER@CUDENVER.bitnet
1200 Larimer St, NC2506, Denver CO 80204   /   {uucp...}!boulder!pikes!pklammer
P.O. Box 173364, Denver CO 80217-3364    /  pklammer@cudnvr.Denver.Colorado.EDU