Table of Contents

Class FakeConsole

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll
public static class FakeConsole
Inheritance
FakeConsole
Inherited Members

Fields

HEIGHT

Specifies the initial console height.

MockKeyPresses

A stack of keypresses to return when ReadKey is called.

WIDTH

Specifies the initial console width.

Properties

BackgroundColor
BufferHeight
BufferWidth
CursorLeft
CursorSize
CursorTop
CursorVisible
Error
ForegroundColor
In
InputEncoding
IsErrorRedirected
IsInputRedirected
IsOutputRedirected
KeyAvailable
LargestWindowHeight
LargestWindowWidth
Out
OutputEncoding
Title
TreatControlCAsInput
WindowHeight
WindowLeft
WindowTop
WindowWidth

Methods

Beep()
Beep(int, int)
Clear()
MoveBufferArea(int, int, int, int, int, int)
MoveBufferArea(int, int, int, int, int, int, char, ConsoleColor, ConsoleColor)
OpenStandardError()
OpenStandardError(int)
OpenStandardInput()
OpenStandardInput(int)
OpenStandardOutput()
OpenStandardOutput(int)
PushMockKeyPress(KeyCode)

Helper to push a KeyCode onto MockKeyPresses.

Read()
ReadKey()
ReadLine()
ResetColor()
SetBufferSize(int, int)
SetCursorPosition(int, int)
SetError(TextWriter)
SetIn(TextReader)
SetOut(TextWriter)
SetWindowPosition(int, int)
SetWindowSize(int, int)
Write(bool)
Write(char)
Write(char[])
Write(char[], int, int)
Write(decimal)
Write(double)
Write(int)
Write(long)
Write(object)
Write(float)
Write(string)
Write(string, object)
Write(string, object, object)
Write(string, object, object, object)
Write(string, object, object, object, object)
Write(string, params object[])
Write(uint)
Write(ulong)
WriteLine()
WriteLine(bool)
WriteLine(char)
WriteLine(char[])
WriteLine(char[], int, int)
WriteLine(decimal)
WriteLine(double)
WriteLine(int)
WriteLine(long)
WriteLine(object)
WriteLine(float)
WriteLine(string)
WriteLine(string, object)
WriteLine(string, object, object)
WriteLine(string, object, object, object)
WriteLine(string, object, object, object, object)
WriteLine(string, params object[])
WriteLine(uint)
WriteLine(ulong)