Text Coordinates

The text modes use a coordinate system that divides the screen into rows and columns as shown in the following figure:

Text Screen Coordinates

Text coordinates use the following conventions:

If the screen displays 25 rows and 80 columns (as shown in the above Figure), the rows are numbered 1-25 and the columns are numbered 1-80. The text-positioning routines, such as SETTEXTPOSITION and SCROLLTEXTWINDOW, use row and column coordinates.