CRT Documentation: Reference

SetCursorType

[This function does not have a corresponding DOS function.]

Changes the appearance of the cursor.

procedure SetCursorType(
  Cursor: integer; 
  Custom: longword = 15; 
  Visible: boolean = True
);

Parameters

Cursor
[in] One of the CursorType constants.
Custom
[in] If _CUSTOM is passed in the Cursor parameter, this value defines the size of the cursor in percent of the character cell filled (100 being the largest, 1 being the smallest). The default value is 15.

If Cursor contains any other value, then this parameter is ignored.

Visible
[in] If _CUSTOM is passed in the Cursor parameter, this defines the visibility of the cursor. If True, the cursor will be visible, if False, the cursor will be hidden. The default value is True.

If Cursor contains any other value, then this parameter is ignored.

Remarks

This procedure can be used to set the visibility and appearance of the cursor in your console application. Internally this procedure calls the Win32 API function SetConsoleCursorInfo. Any limitations imposed by the Win32 API function will also propagate to this procedure.

See Also

Crt Overview, CursorType constants