Defines the lowest-level user interface functions that an interactive application hosting an MSH Runspace can choose to implement if it wants to support any cmdlet that does character-mode interaction with the user.
public abstract class PSHostRawUserInterface
It models an 2-dimensional grid of cells called a Buffer. A buffer has a visible rectangular region, called a window. Each cell of the grid has a character, a foreground color, and a background color. 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.
Protected constructor which does nothing. Provided per .Net design guidelines section 4.3.1
Gets or sets the color used to render the background behind characters on the screen buffer. Each character cell in the screen buffer can have a separate background color.
Gets or sets the current size of the screen buffer, measured in character cells.
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.
Gets or sets the cursor size as a percentage 0..100.
Gets or sets the color used to render characters on the screen buffer. Each character cell in the screen buffer can have a separate foreground color.
A non-blocking call to examine if a keystroke is waiting in the input buffer.
Gets the largest window possible for the current font and display hardware, ignoring the current buffer dimensions. In other words, the dimensions of the largest window that could be rendered in the current display, if the buffer was at least as large.
Gets the size of the largest window possible for the current buffer, current font, and current display hardware.
Gets or sets position of the view window relative to the screen buffer, in characters. (0,0) is the upper left of the screen buffer.
Gets or sets the current view window size, measured in character cells. The window size cannot be larger than the dimensions returned by MaxPhysicalWindowSize.
Gets or sets the titlebar text of the current view window.
Resets the keyboard input buffer.
Extracts a rectangular region of the screen buffer.
Determines the number of BufferCells a character occupies.
Determines the number of BufferCells a string occupies.
Determines the number of BufferCells a substring of a string occupies.
|NewBufferCellArray(Int32, Int32, BufferCell)||
Creates a 2D array of BufferCells by examining
|NewBufferCellArray(String, ConsoleColor, ConsoleColor)||
Creates a two dimensional array of BufferCells by examining each character in
Reads a key stroke from the keyboard device, blocking until a keystroke is typed. Same as ReadKey(ReadKeyOptions.IncludeKeyDown | ReadKeyOptions.IncludeKeyUp)
Reads a key stroke from the keyboard device, blocking until a keystroke is typed. Either one of ReadKeyOptions.IncludeKeyDown and ReadKeyOptions.IncludeKeyUp or both must be specified.
|ScrollBufferContents(Rectangle, Coordinates, Rectangle, BufferCell)||
Scroll a region of the screen buffer.
Copies the BufferCell array into the screen buffer at the given origin, clipping such that cells in the array that would fall outside the screen buffer are ignored.
Copies a given character to all of the character cells in the screen buffer with the indicated colors.