PKLAMMER@CUDNVR.DENVER.COLORADO.EDU (Pete Klammer 303/556-3915) (03/13/91)
Here is the exact patch for NCSA Telnet/PC version "2.3b15 3/10/91" Problem: NCSA telnet responds to the "what are you?" query (e.g., from VMS command 'SET TERM /INQUIRE') with "(ESC)([)(?)(6)(c)", which means, "I am a VT102." Unfortunately, this is not true, since real VT102's support insert/delete-character commands, and NCSA doesn'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(s): Change NCSA telnet code to respond "I am a VT100" "(ESC)([)(?)(1)(c)" (that's escape, left-bracket, query, one, lowercase-c), 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's differently) - rds (we need to look beyond the first 64K segment) DS 1226 (a 4-digit number is displayed) : 3226 (add $2000 to this number and type that in) -s 0 ffff "[?6c" (search for this text) 3226:FEOC (a segment:offset address is displayed) -e feoe (add $2 to the offset, where the "6" is) 3226:FEOE: 36.31 (type in 31 which is hex for ASCII "1") -w (write file back out) Writing 33675 bytes -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!copper!pklammer P.O. Box 173364, Denver CO 80217-3364 /// pklammer@cudnvr.Denver.Colorado.EDU