Terminal control/Positional read: Difference between revisions

m
no edit summary
No edit summary
mNo edit summary
Line 1:
{{task|Terminal control}}[[Terminal Control::task| ]]
Determine the character displayed on the screen at column 3, row 6 and store that character in a variable. Note that it is permissible to utilize system or language provided methods or system provided facilities, system maintained records or available buffers or system maintained display records to achieve this task, rather than query the terminal directly, if those methods are more usual for the system type or language.
 
=={{header|Action!}}==
Method 1: terminal reading
<lang Action!>proc Main()
byte chars, cursorinh=$2F0
 
graphics(0) cursorinh=1
 
position(2,2) printe("Action!")
 
chars=Locate(2,2) position(2,2) put(CHARS)
 
cursorinh=0
position(2,4) printf("Character at column 2 row 2 was %C",chars)
 
return</lang>
 
=={{header|AutoHotkey}}==
Anonymous user