Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!mit-eddie!uw-beaver!tektronix!tekgen!tekred!joels From: joels@tekred.TEK.COM (Joel Swank) Newsgroups: comp.sys.amiga Subject: Vt100 bug: Squished, and more Message-ID: <1811@tekred.TEK.COM> Date: Mon, 9-Nov-87 16:59:25 EST Article-I.D.: tekred.1811 Posted: Mon Nov 9 16:59:25 1987 Date-Received: Wed, 11-Nov-87 21:52:02 EST Distribution: na Organization: Tektronix Inc., Beaverton, Or. Lines: 52 From VT100 V2.7 readme: - Nagging bug: On 2nd and subsequent uses of the requester, the 1st character of the last use is redisplayed. Intuition bug? I got tired of this sucker last weekend, so I tracked it down and squished it. The Answer: In window.c subroutine req() change: /* copy in a prompt and a default */ strncpy(Prompt,prmpt,lprmpt); Prompt[lprmpt+1] = '\0'; strncpy(InpBuf,name,lname); InpBuf[lname+1] = '\0'; To: /* copy in a prompt and a default */ strncpy(Prompt,prmpt,lprmpt); Prompt[lprmpt] = '\0'; strncpy(InpBuf,name,lname); InpBuf[lname] = '\0'; This bug also caused the Prompt field to get munged. Another irritation with this program: - req() subroutine in window.c leaves keyboard active in requestor window. It should re-activate main window. Add as the last statement in subroutine req() in window.c: ActivateWindow(mywindow); There a couple of other places that this call should be added, but I haven't tracked them down yet. This takes care of the great majority. There's another addition I needed, so I put it in while I was in there: In order to have a beep at completion of kermit file transfer. In vt100.c add a copy of the the statement: cmd_beep(); After each of the following statements: multi_xfer(name,dokreceive,0); multi_xfer("",dokreceive,0); multi_xfer(name,doksend,1); A better solution would to be to add a flag that could be set in the init file that would turn on or off beeps for all xfers, and code to check the flag and do the cmd_beep in multi_xfer. Joel Swank Tektronix, Redmond, Oregon joels@tekred.TEK.COM