Terminal control/Cursor movement: Difference between revisions

m
added whitespace before the TOC (table of contents), added a ;Task: (bold) header, indented task's (bullet) requirements..
(→‎{{header|XPL0}}: added zkl)
m (added whitespace before the TOC (table of contents), added a ;Task: (bold) header, indented task's (bullet) requirements..)
Line 1:
{{task|Terminal control}}
The task is to demonstrate how to achieve movement of the terminal cursor:
 
;Task:
* Demonstrate how to move the cursor one position to the left
* Demonstrate how to moveachieve themovement cursorof onethe positionterminal to the rightcursor:
:* Demonstrate how to move the cursor up one lineposition (withoutto affectingthe its horizontal position)left
:* Demonstrate how to move the cursor down one lineposition (withoutto affectingthe its horizontal position)right
:* Demonstrate how to move the cursor toup theone beginningline of(without theaffecting lineits horizontal position)
:* Demonstrate how to move the cursor todown theone endline of(without theaffecting lineits horizontal position)
:* Demonstrate how to move the cursor to the top left cornerbeginning of the screenline
:* Demonstrate how to move the cursor to the bottom right cornerend of the screenline
:* Demonstrate how to move the cursor one position to the top left corner of the screen
:* how to move the cursor to the bottom right corner of the screen
 
<br>
For the purpose of this task, it is not permitted to overwrite any characters or attributes on any part of the screen (so outputting a space is not a suitable solution to achieve a movement to the right).
 
;Handling of out of bounds locomotion
 
;Handling of out of bounds locomotion
This task has no specific requirements to trap or correct cursor movement beyond the terminal boundaries, so the implementer should decide what behaviourbehavior fits best in terms of the chosen language. &nbsp; Explanatory notes may be added to clarify how an out of bounds action would behave and the generation of error messages relating to an out of bounds cursor position is permitted.
<br><br>
 
=={{header|AutoHotkey}}==