home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_disks / 100-199 / ff114.lzh / Vt100 / fixes / amiga.10293 next >
Text File  |  1987-11-22  |  2KB  |  66 lines

  1. Article 10293 of comp.sys.amiga:
  2. Path: mcdsun!noao!hao!ames!sdcsvax!ucsdhub!hp-sdd!hplabs!cae780!tektronix!tekgen!tekred!joels
  3. From: joels@tekred.TEK.COM (Joel Swank)
  4. Newsgroups: comp.sys.amiga
  5. Subject: Vt100 bug: Squished, and more
  6. Message-ID: <1811@tekred.TEK.COM>
  7. Date: 9 Nov 87 21:59:25 GMT
  8. Distribution: na
  9. Organization: Tektronix Inc., Beaverton, Or.
  10. Lines: 52
  11.  
  12. From VT100 V2.7 readme:
  13.  
  14.     - Nagging bug: On 2nd and subsequent uses of the requester, the
  15.       1st character of the last use is redisplayed.  Intuition bug?
  16.  
  17. I got tired of this sucker last weekend, so I tracked it down and 
  18. squished it.
  19.  
  20. The Answer:
  21. In window.c subroutine req() change:
  22.     /* copy in a prompt and a default */
  23.     strncpy(Prompt,prmpt,lprmpt); Prompt[lprmpt+1] = '\0';
  24.     strncpy(InpBuf,name,lname); InpBuf[lname+1] = '\0';
  25. To:
  26.     /* copy in a prompt and a default */
  27.     strncpy(Prompt,prmpt,lprmpt); Prompt[lprmpt] = '\0';
  28.     strncpy(InpBuf,name,lname); InpBuf[lname] = '\0';
  29. This bug also caused the Prompt field to get munged.
  30.  
  31. Another irritation with this program:
  32.  
  33. - req() subroutine in window.c leaves keyboard active in requestor 
  34.   window.  It should re-activate main window.
  35.  
  36. Add as the last statement in subroutine req() in window.c:
  37.     ActivateWindow(mywindow);
  38.  
  39. There a couple of other places that this call should be added, but
  40. I haven't tracked them down yet. This takes care of the great majority.
  41.  
  42. There's another addition I needed, so I put it in while I was in there:
  43.  
  44. In order to have a beep at completion of kermit file transfer.
  45. In vt100.c add a copy of the the statement:
  46.  
  47.         cmd_beep();
  48.  
  49. After each of the following statements:
  50.  
  51.         multi_xfer(name,dokreceive,0);
  52.  
  53.         multi_xfer("",dokreceive,0);
  54.  
  55.         multi_xfer(name,doksend,1);
  56.  
  57. A better solution would to be to add a flag that could be set in the
  58. init file that would turn on or off beeps for all xfers, and code to
  59. check the flag and do the cmd_beep in multi_xfer.
  60.  
  61. Joel Swank
  62. Tektronix, Redmond, Oregon
  63. joels@tekred.TEK.COM
  64.  
  65.  
  66.