Terminal control/Restricted width positional input/With wrapping: Difference between revisions

m
→‎{{header|REXX}}: added comments.
(→‎{{header|REXX}}: added the computer programming language REXX.)
m (→‎{{header|REXX}}: added comments.)
Line 364:
 
=={{header|REXX}}==
{(Only works with:   REXX/Personal)
<lang rexx>/*REXX pgm reads text from the terminal screen from a certain row, column, and length.*/
parse arg row col len . /*obtain optional arguments from the CL*/
if row=='' | row=="," then row= 13 /*Not specified? Then use the default.*/
if col=='' | col=="," then col= 15 /* " " " " " " */
if len=='' | len=="," then len= 18 /* " " " " " " */
parse upper version v . /*obtain the version of REXX being used*/
 
if v\=='REXX/PERSONAL' then do
if v\=='REXX/PERSONAL' then do; say /*Not correct version? Tell err msg. say*/
say '***error***:'
say 'This REXX program requires Personal REXX version.'
say
exit 13
end
$= scrread(row, col, len)