TApxTerminalBuffer.Col

TApxTerminalBuffer

property Col : Integer 

Defines the column of the cursor.

The Col property refers to the cursor. Reading the Col property returns the column number of the cursor, and setting it moves the cursor to that column in the current row.

The value used for the Col property is one-based; in other words, columns are counted from 1. If there are 80 columns across the terminal screen, the columns will be known as columns 1 to 80. If the column number used is out of the range of the screen or the current scrolling region, it is forced silently into bounds.

If a scrolling region is activated, the values for Col will be relative to the home position of the scrolling region, not the home position of the screen itself.

See also: ColCount, SetCursorPosition, UseScrollRegion