Terminal control/Positional read
Terminal control/Positional read
You are encouraged to solve this task according to the task description, using any language you may know.
You are encouraged to solve this task according to the task description, using any language you may know.
Determine the character displayed on the screen at column 3, row 6 and store that character in a variable.
Ada
Algol68
awk
BASIC
QBasic
Locomotive Basic
ZX Spectrum 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)
Batch File
COBOL
PureBasic
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: