Windows Dev Center

PSHostRawUserInterface Class

Defines the low-level host functionality, such as read and write actions, that a host application can implement to support cmdlets that perform character-mode interaction with the user.

Namespace: System.Management.Automation.Host
Assembly: System.Management.Automation (in System.Management.Automation.dll)

Dim instance As PSHostRawUserInterface

Public MustInherit Class PSHostRawUserInterface
public abstract class PSHostRawUserInterface
public abstract class PSHostRawUserInterface

The user interface model is based on a two-dimensional grid of cells referred to as the screen buffer. This buffer, in turn, includes a visible rectangular region called a window. Looking at this buffer in greater detail, each cell of the grid has a character, foreground color, and background color associated with it. When the buffer has input focus, it shows a cursor positioned in one cell.

Keystrokes can be read from the buffer and optionally echoed at the current cursor position.


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


Target Platforms

© 2015 Microsoft