Talk:Terminal control/Cursor positioning: Difference between revisions

From Rosetta Code
Content added Content deleted
(Origin.)
 
Line 1: Line 1:
==Origin?==
==Origin?==
The specification is flawed. If the top left-hand corner at (0,0) or (1,1) ?
The specification is flawed. If the top left-hand corner at (0,0) or (1,1) ?

:The top left hand corner would be row 1, column 1. This may be represented as (0,0) or (1,1) depending on the language used. For the purpose of this task, solutions implemented in languages that use (0,0) to represent the top left corner would need to subtract one from the row and column numbers to place the cursor at the correct position. --[[User:Markhobley|Markhobley]] 01:04, 4 June 2011 (UTC)

Revision as of 01:04, 4 June 2011

Origin?

The specification is flawed. If the top left-hand corner at (0,0) or (1,1) ?

The top left hand corner would be row 1, column 1. This may be represented as (0,0) or (1,1) depending on the language used. For the purpose of this task, solutions implemented in languages that use (0,0) to represent the top left corner would need to subtract one from the row and column numbers to place the cursor at the correct position. --Markhobley 01:04, 4 June 2011 (UTC)