home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / rexx / 1420 < prev    next >
Encoding:
Internet Message Format  |  1992-12-17  |  1.4 KB

  1. Path: sparky!uunet!vnet.ibm.com
  2. From: pmuellr@vnet.ibm.com (Pat Mueller)
  3. Message-ID: <19921217.064347.429@almaden.ibm.com>
  4. Date: Thu, 17 Dec 92 09:14:47 EST
  5. Newsgroups: comp.lang.rexx
  6. Subject: Re: rexx and os/2 1.3 vs 2.0
  7. Lines: 23
  8.  
  9. >  I wrote a rexx pgm under OS/2 2.0 using charout and pull functions to prompt
  10. >  and accept input from user.  and it works great under 2.0, but under 1.3 it
  11. >  behaves oddly.  instead of the cursor being at the end of the text written
  12. >  out with charout() while pull() waits for user to hit enter key,  the cursor
  13. >  skips a couple of lines, outputs a "?" and then waits for user to hit enter
  14. >  key.  I vaguely remember from years ago that a ":" at the end of the prompt
  15. >  text would get around this problem, but i tried that and it made no difference
  16. >  Can anyone tell me how to fix this so it will run under 1.3 nicely?
  17. >  (PS i also replaced charout with "say" and the same results occurred)
  18.  
  19. The culprit is most likely 'pull'.  Try using linein("STDIN:") instead
  20. of pull.
  21.  
  22. The questionable behaviour of the 'pull' statement prompting a user
  23. with a "?" has thankfully been removed.  It was added to provide CMS
  24. equivalent function - in CMS you can tell when you are being prompted
  25. for information (you see a "VM READ" at the bottom of the screen).  The
  26. "?" was supposed to provide the same visual cue.  At least as far as
  27. I can remember.
  28.  
  29. Patrick Mueller
  30. Programming Systems
  31. IBM Cary, NC
  32.