Terminal control/Cursor positioning: Difference between revisions

no edit summary
m (C points to minesweeper.)
No edit summary
Line 38:
Print("Hello")</lang>
 
==[[{{header|REXX]]}}==
The REXX doesn't have any cursor or screen management tools, but some REXX interpreters have
{{incorrect|REXX|There is no code that actually does the task; assertions of possibility are insufficient.}}
<br>added the functionality via different methods.
The Rexx programming language does not include terminal control as part of the language. However, it might be possible to output ANSI control sequences, and there are various workarounds which are platform specific:
<br><br>Below is one example implented by PC/REXX:
<lang rexx>
/*REXX program demonstrates cursor position and writing of text to same.*/
 
/*──────────────────────────────────────examples are for PC/REXX only. */
{{libheader|rexxcurses}}
<br>
{{works with|regina}}
 
call cursor 3,6 /*move the cursor to row 3, col 6*/
The [[regina]] interpreter supports the [[rexxcurses]] plugin, which provides the facility to set the cursor position:
say 'Hello' /*write the text at that location*/
<!-- still need code demonstrating this. Either that, or remove this section. The task seems fine for being non-draft, otherwise. -->
 
 
 
call scrwrite 30,50,'Hello.' /*another method. */
 
call scrwrite 40,60,'Hello.',,,14 /*another ... in yellow.*/
</lang>
 
=={{header|Retro}}==