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