Terminal control/Positional read: Difference between revisions

Content added Content deleted
m ({{omit from|Lilypond}})
m (→‎{{header|REXX}}: changed comments, added whitespace, added a comment. -- ~~~~)
Line 110: Line 110:
=={{header|REXX}}==
=={{header|REXX}}==
The REXX doesn't have any cursor or screen management tools, but some REXX interpreters have added the functionality via different methods.
The REXX doesn't have any cursor or screen management tools, but some REXX interpreters have added the functionality via different methods.

{{works with|PC/REXX}}
{{works with|PC/REXX}}
<lang rexx>/*REXX program demonstrates reading a char at specific screen location.*/
<lang rexx>/*REXX program demonstrates reading a char at specific screen location.*/
row = 6 /*point to row six. */
col = 3 /*point to column three. */
howMany = 1 /*read one character. */


row=6 /*point to row six. */
stuff = scrRead(row, col, howMany) /*this'll do it. */
col=3 /*point to column three. */
howMany=1 /*read one character. */

stuff=scrRead(row,col,howMany) /*this'll do it. */


other=scrRead(40,6,1) /*same thing, but for row forty. */</lang>
other = scrRead(40, 6, 1) /*same thing, but for row forty. */
/*stick a fork in it, we're done.*/</lang>


{{omit from|ACL2}}
{{omit from|ACL2}}