TApxTerminalBuffer.MoveCursorRight

TApxTerminalBuffer

procedure MoveCursorRight(aWrap : Boolean; aScroll : Boolean); 

Moves the cursor right one position.

The column number of the cursor is incremented, unless the cursor is at the last position of the row.

If, in fact, the cursor is at the row's last position, the values for aWrap and aScroll come into play. If aWrap is False, the cursor does not move. If aWrap is True, the cursor moves down one row, and is positioned at the first column of that next row. If, furthermore, the cursor was originally at the last column of the bottom row and aScroll was False, the cursor does not move. If, on the other hand, aScroll was True, the screen or scrolling region is scrolled up one row and the cursor then moved to the first column of the bottom row. The new row is initialized to space characters, using the current colors and attributes.

This method is limited to the current scrolling region.

See also: Col, MoveCursorLeft, SetCursorPosition