Keyboard input/Obtain a Y or N response: Difference between revisions

→‎{{header|REXX}}: change the 2nd version's name. -- ~~~~
(→‎version 1: changed the version name. -- ~~~~)
(→‎{{header|REXX}}: change the 2nd version's name. -- ~~~~)
Line 467:
 
=={{header|REXX}}==
===version for all classic REXXes===
This version works with all classic REXXes.
<br><br>REXX (in general) requires the user to press the &nbsp; ENTER &nbsp; key after entering text.
<br>This is because the original (IBM) REXX was designed and written for a system when all I/O to a user's terminal screen was
<br>in block mode and required the user to press one of the following before any data was sent to the computer:
Line 490 ⟶ 491:
/*stick a fork in it, we're done.*/</lang>
 
===version 2for PC/REXX and Personal REXX===
This version of a REXX program works with PC/REXX and Personal REXX.
<lang rexx>/*REXX program to test for a Y or N key when pressed. */
prompt='Press Y or N for some reason.' /*the PROMPT message.*/