PSHostRawUserInterface.CursorPosition Property


Gets or sets the cursor position in the screen buffer. The view window always adjusts it's location over the screen buffer such that the cursor is always visible.

public abstract System.Management.Automation.Host.Coordinates CursorPosition { get; set; }
Property Value


To write to the screen buffer without updating the cursor position, use SetBufferContents(Rectangle, BufferCell) or System.Management.Automation.Host.PSHostRawUserInterface.SetBufferContents(System.Management.Automation.Host.Coordinates,System.Management.Automation.Host.BufferCell[0:,0:])