Search notes:

System.Management.Automation.Host.PSHostRawUserInterface (class)

System.Management.Automation.Host.PSHostRawUserInterface manages a PowerShell's console (character-) buffer and input from a keyboard.
This class represents the minimal interface that an implementation of System.Management.Automation.Runspaces.Runspace needs to implement if it wants to provide (character mode) interaction to its cmdlets.
The characters in the buffer are represented by System.Management.Automation.Host.BufferCell structs.
PSHostRawUserInterface inherits directly from System.Object.
An instance of PSHostRawUserInterface is referenced by the property RawUI of System.Management.Automation.Host.PSHostUserInterface.

Properties and Methods

BackgroundColor, ForegroundColor A value of the System.ConsoleColor enum.
BufferSize Size of the buffer measured in characters (System.Management.Automation.Host.Size)
CursorPosition Sets or gets the position of the cursor. If the cursor is set, the view onto the buffer is moved so that the new position is visible. (System.Management.Automation.Host.Coordinates)
CursorSize Cursor size as percentage (of what?)
FlushInputBuffer()
GetBufferContents()
KeyAvailable Non-blocking test if a keystroke is waiting in the input buffer to be read by ReadKey()
LengthInBufferCells()
MaxPhysicalWindowSize
MaxWindowSize
NewBufferCellArray()
ReadKey()
ScrollBufferContents()
SetBufferContents()
WindowPosition The position of the view window. Read-write. (System.Management.Automation.Host.Coordinates)
WindowSize
WindowTitle

See also

System.Management.Automation.Host.PSHostUserInterface

Index