Terminal control/Cursor positioning: Difference between revisions

Content added Content deleted
m (added whitespace and highlighting.)
m (→‎{{header|REXX}}: added/changed comments.)
Line 573: Line 573:
The REXX language doesn't have any cursor or screen management tools, but some REXX interpreters have added the functionality via different methods.
The REXX language doesn't have any cursor or screen management tools, but some REXX interpreters have added the functionality via different methods.
{{works with|PC/REXX, Personal REXX}}
{{works with|PC/REXX, Personal REXX}}
<lang rexx>/*REXX program demonstrates cursor position and writing of text to same.*/
<lang rexx>/*REXX program demonstrates moving the cursor position and writing of text to same place*/


call cursor 3,6 /*move the cursor to row 3, col 6*/
call cursor 3,6 /*move the cursor to row 3, column 6. */
say 'Hello' /*write the text at that location*/
say 'Hello' /*write the text at that location. */


call scrwrite 30,50,'Hello.' /*another method. */



call scrwrite 40,60,'Hello.',,,14 /*another ... in yellow.*/</lang>
call scrwrite 30,50,'Hello.' /*another method, different location. */

call scrwrite 40,60,'Hello.',,,14 /*another method ... in yellow. */
exit 0 /*stick a fork in it, we're all done. */</lang>


=={{header|Ring}}==
=={{header|Ring}}==