Search notes:

Powershell: $host.ui.rawUI

$host.ui is a System.Management.Automation.Internal.Host.InternalHostRawUserInterface object.
Interesting methods and properties:
FlushInputBuffer() Compare with ReadKey()
GetBufferContents(), SetBufferContents()
LengthInBufferCells()
NewBufferCellArray()
ReadKey() Optionally takes a System.Management.Automation.Host.ReadKey parameter and returns a System.Management.Automation.Host.KeyInfo object). Compare with FlushInputBuffer()
ScrollBufferContents()
BackgroundColor, ForegroundColor Defines a PowerShell host's console foreground and background colors.
BufferSize A System.Management.Automation.Host.Size struct
CursorPosition A System.Management.Automation.Host.Coordinates struct
CursorSize An Int32
KeyAvailable A Boolean
MaxPhysicalWindowSize A System.Management.Automation.Host.Size struct
MaxWindowSize A System.Management.Automation.Host.Size struct
WindowPosition A System.Management.Automation.Host.Coordinates struct
WindowSize A System.Management.Automation.Host.Size struct
WindowTitle

See also

$host.ui

Index