| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Pl/i Query |
On Saturday, 95/11/25, Murray Lesser wrote to David Noon about "Pl/i
Query" as follows:
ML> I must have been suffering from too much travel when I wrote it.
ML> Obviously, a PL/I equivalent to CHARIN is REPLY. What I should
ML> have been asking for is the PL/I equivalent of _getch; I want to
ML> block on the keyboard until a character is entered, then read that
ML> character.
Hi Murray,
I spotted your little mistake, but I understood what you meant. ...
:-)
ML> display (' Press ENTER to stop beeping') REPLY (X);
This approach is buffered, but it does at least flush the output
buffer before soliciting input. However, it waits until return is hit
before returning control to the program.
I expect that FidoDelay has elapsed and you have seen my earlier post
about declaring the STDIN: to be unbuffered. You might need to be
careful with output buffering to get the prompt displayed before input
is solicited. You can declare an unbuffered output file and use the
WRITE statement to write to the STDOUT: device, if necessary.
ML> Among other problems, I am producing beaucoup error
ML> messages when I try to call DosBeep by including OS2.CPY instead
ML> of having the prototype in the program. Which means that I will
ML> have much trouble building the equivalent to _getch from KBDCharin,
ML> also.
ML>
ML> Any suggestions?
I use the .CV2 include files instead of .CPY. They aren't bug-free,
but they are better than the .CPY files.
Regards
Dave
* KWQ/2 1.2i * I'm so broke I'm thinking of starting my own government...
--- Maximus/2 3.00
* Origin: DoNoR/2,Woking UK (44-1483-725167) (2:440/4)SEEN-BY: 270/101 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407 SEEN-BY: 712/515 517 628 713/888 800/1 7877/2809 @PATH: 440/4 141/209 270/101 712/515 711/808 809 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.