Terminal control/Positional read: Difference between revisions

From Rosetta Code
Content added Content deleted
(Placeholders screw up language/example completion tracking. Have as draft for now.)
(Scrub things without implementations)
Line 2: Line 2:


Determine the character displayed on the screen at column 3, row 6 and store that character in a variable.
Determine the character displayed on the screen at column 3, row 6 and store that character in a variable.

=={{header|Ada}}==

=={{header|Algol68}}==

=={{header|awk}}==


=={{header|BASIC}}==
=={{header|BASIC}}==

=== {{header|QBasic}} ===

=== {{header|Locomotive Basic}} ===


=== {{header|ZX Spectrum Basic}} ===
=== {{header|ZX Spectrum Basic}} ===


10 REM The top left corner is at position 0,0
<lang basic> 10 REM The top left corner is at position 0,0
20 REM So we subtract one from the coordinates
20 REM So we subtract one from the coordinates
30 LET c$ = SCREEN$(5,2)
30 LET c$ = SCREEN$(5,2)</lang>


==[[REXX]]==
=={{header|Batch File}}==

=={{header|COBOL}}==

=={{header|PureBasic}}==


=={{header|Rexx}}==


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:
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:

===[[brexx]]===

===[[regina]]===


=={{header|UNIX Shell}}==

Revision as of 08:43, 5 October 2010

Terminal control/Positional read is a draft programming task. It is not yet considered ready to be promoted as a complete task, for reasons that should be found in its talk page.

Determine the character displayed on the screen at column 3, row 6 and store that character in a variable.

BASIC

ZX Spectrum Basic

<lang basic> 10 REM The top left corner is at position 0,0

20 REM So we subtract one from the coordinates
30 LET c$ = SCREEN$(5,2)</lang>

REXX

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: