ConsoleTarget
ConsoleMonster.Output
The process console: detected profile (size refreshed on every write), keyboard input. The default target.
Inheritance
- object
- ConsoleTarget
Usage
Explore 1 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 1
- Property ConsoleTarget.Instance
Methods
public bool TryGetWindow(out int left, out int top, out int width, out int height) #The visible window in cells: its position in the buffer and its size.
Parameters
- left int
- The leftmost visible column of the buffer (zero when the driver has no scrollable buffer).
- top int
- The topmost visible row of the buffer (zero when the driver has no scrollable buffer).
- width int
- The window width in cells.
- height int
- The window height in cells.
Returns
bool False when the size is unknown (for example, output is redirected); callers then use the profile's size.Inherited Methods
Properties
public string Name { get; } #A short description for diagnostics, for example console or recording 80x24.
public TerminalProfile Profile { get; } #The capability profile for a write happening now (the console's refreshes its size on every call).
public ITheme? Theme { get; } #The theme, or null to choose one from the profile (see Terminal.ResolveTheme).
public ITerminalWriter? Writer { get; } #The writer that receives the output, or null for the process console. The target owns it: callers write and flush but never dispose it.
public IInputSource? Input { get; } #The input for prompts, menus and forms, or null. On the console null means the keyboard; on any other target it means nobody can answer, so prompts use their defaults or explain what is missing.