Class FakeConsole
Assembly: Terminal.Gui.dll
Syntax
public static class FakeConsole
Fields
|
Edit this page
View Source
HEIGHT
Specifies the initial console height.
Declaration
public const int HEIGHT = 25
Field Value
|
Edit this page
View Source
MockKeyPresses
Declaration
public static Stack<ConsoleKeyInfo> MockKeyPresses
Field Value
|
Edit this page
View Source
WIDTH
Specifies the initial console width.
Declaration
public const int WIDTH = 80
Field Value
Properties
|
Edit this page
View Source
BackgroundColor
Declaration
public static ConsoleColor BackgroundColor { get; set; }
Property Value
|
Edit this page
View Source
BufferHeight
Declaration
public static int BufferHeight { get; set; }
Property Value
|
Edit this page
View Source
BufferWidth
Declaration
public static int BufferWidth { get; set; }
Property Value
|
Edit this page
View Source
CapsLock
Declaration
public static bool CapsLock { get; }
Property Value
|
Edit this page
View Source
CursorLeft
Declaration
public static int CursorLeft { get; set; }
Property Value
|
Edit this page
View Source
CursorSize
Declaration
public static int CursorSize { get; set; }
Property Value
|
Edit this page
View Source
CursorTop
Declaration
public static int CursorTop { get; set; }
Property Value
|
Edit this page
View Source
CursorVisible
Declaration
public static bool CursorVisible { get; set; }
Property Value
|
Edit this page
View Source
Error
Declaration
public static TextWriter Error { get; }
Property Value
|
Edit this page
View Source
ForegroundColor
Declaration
public static ConsoleColor ForegroundColor { get; set; }
Property Value
|
Edit this page
View Source
In
Declaration
public static TextReader In { get; }
Property Value
|
Edit this page
View Source
Declaration
public static Encoding InputEncoding { get; set; }
Property Value
|
Edit this page
View Source
IsErrorRedirected
Declaration
public static bool IsErrorRedirected { get; }
Property Value
|
Edit this page
View Source
Declaration
public static bool IsInputRedirected { get; }
Property Value
|
Edit this page
View Source
IsOutputRedirected
Declaration
public static bool IsOutputRedirected { get; }
Property Value
|
Edit this page
View Source
KeyAvailable
Declaration
public static bool KeyAvailable { get; }
Property Value
|
Edit this page
View Source
LargestWindowHeight
Declaration
public static int LargestWindowHeight { get; }
Property Value
|
Edit this page
View Source
LargestWindowWidth
Declaration
public static int LargestWindowWidth { get; }
Property Value
|
Edit this page
View Source
NumberLock
Declaration
public static bool NumberLock { get; }
Property Value
|
Edit this page
View Source
Out
Declaration
public static TextWriter Out { get; }
Property Value
|
Edit this page
View Source
OutputEncoding
Declaration
public static Encoding OutputEncoding { get; set; }
Property Value
|
Edit this page
View Source
Title
Declaration
public static string Title { get; set; }
Property Value
|
Edit this page
View Source
Declaration
public static bool TreatControlCAsInput { get; set; }
Property Value
|
Edit this page
View Source
WindowHeight
Declaration
public static int WindowHeight { get; set; }
Property Value
|
Edit this page
View Source
WindowLeft
Declaration
public static int WindowLeft { get; set; }
Property Value
|
Edit this page
View Source
WindowTop
Declaration
public static int WindowTop { get; set; }
Property Value
|
Edit this page
View Source
WindowWidth
Declaration
public static int WindowWidth { get; set; }
Property Value
Methods
|
Edit this page
View Source
Beep()
Declaration
public static void Beep()
|
Edit this page
View Source
Beep(int, int)
Declaration
public static void Beep(int frequency, int duration)
Parameters
| Type |
Name |
Description |
| int |
frequency |
|
| int |
duration |
|
|
Edit this page
View Source
Clear()
Declaration
public static void Clear()
|
Edit this page
View Source
MoveBufferArea(int, int, int, int, int, int)
Declaration
public static void MoveBufferArea(int sourceLeft, int sourceTop, int sourceWidth, int sourceHeight, int targetLeft, int targetTop)
Parameters
| Type |
Name |
Description |
| int |
sourceLeft |
|
| int |
sourceTop |
|
| int |
sourceWidth |
|
| int |
sourceHeight |
|
| int |
targetLeft |
|
| int |
targetTop |
|
|
Edit this page
View Source
MoveBufferArea(int, int, int, int, int, int, char, ConsoleColor, ConsoleColor)
Declaration
public static void MoveBufferArea(int sourceLeft, int sourceTop, int sourceWidth, int sourceHeight, int targetLeft, int targetTop, char sourceChar, ConsoleColor sourceForeColor, ConsoleColor sourceBackColor)
Parameters
|
Edit this page
View Source
OpenStandardError()
Declaration
public static Stream OpenStandardError()
Returns
|
Edit this page
View Source
OpenStandardError(int)
Declaration
public static Stream OpenStandardError(int bufferSize)
Parameters
| Type |
Name |
Description |
| int |
bufferSize |
|
Returns
|
Edit this page
View Source
Declaration
public static Stream OpenStandardInput()
Returns
|
Edit this page
View Source
Declaration
public static Stream OpenStandardInput(int bufferSize)
Parameters
| Type |
Name |
Description |
| int |
bufferSize |
|
Returns
|
Edit this page
View Source
OpenStandardOutput()
Declaration
public static Stream OpenStandardOutput()
Returns
|
Edit this page
View Source
OpenStandardOutput(int)
Declaration
public static Stream OpenStandardOutput(int bufferSize)
Parameters
| Type |
Name |
Description |
| int |
bufferSize |
|
Returns
|
Edit this page
View Source
Read()
Declaration
Returns
|
Edit this page
View Source
ReadKey()
Declaration
public static ConsoleKeyInfo ReadKey()
Returns
|
Edit this page
View Source
ReadKey(bool)
Declaration
public static ConsoleKeyInfo ReadKey(bool intercept)
Parameters
| Type |
Name |
Description |
| bool |
intercept |
|
Returns
|
Edit this page
View Source
ReadLine()
Declaration
public static string ReadLine()
Returns
|
Edit this page
View Source
ResetColor()
Declaration
public static void ResetColor()
|
Edit this page
View Source
SetBufferSize(int, int)
Declaration
public static void SetBufferSize(int width, int height)
Parameters
| Type |
Name |
Description |
| int |
width |
|
| int |
height |
|
|
Edit this page
View Source
SetCursorPosition(int, int)
Declaration
public static void SetCursorPosition(int left, int top)
Parameters
| Type |
Name |
Description |
| int |
left |
|
| int |
top |
|
|
Edit this page
View Source
SetError(TextWriter)
Declaration
public static void SetError(TextWriter newError)
Parameters
|
Edit this page
View Source
SetIn(TextReader)
Declaration
public static void SetIn(TextReader newIn)
Parameters
|
Edit this page
View Source
SetOut(TextWriter)
Declaration
public static void SetOut(TextWriter newOut)
Parameters
|
Edit this page
View Source
SetWindowPosition(int, int)
Declaration
public static void SetWindowPosition(int left, int top)
Parameters
| Type |
Name |
Description |
| int |
left |
|
| int |
top |
|
|
Edit this page
View Source
SetWindowSize(int, int)
Declaration
public static void SetWindowSize(int width, int height)
Parameters
| Type |
Name |
Description |
| int |
width |
|
| int |
height |
|
|
Edit this page
View Source
Write(bool)
Declaration
public static void Write(bool value)
Parameters
| Type |
Name |
Description |
| bool |
value |
|
|
Edit this page
View Source
Write(char)
Declaration
public static void Write(char value)
Parameters
| Type |
Name |
Description |
| char |
value |
|
|
Edit this page
View Source
Write(char[])
Declaration
public static void Write(char[] buffer)
Parameters
| Type |
Name |
Description |
| char[] |
buffer |
|
|
Edit this page
View Source
Write(char[], int, int)
Declaration
public static void Write(char[] buffer, int index, int count)
Parameters
| Type |
Name |
Description |
| char[] |
buffer |
|
| int |
index |
|
| int |
count |
|
|
Edit this page
View Source
Write(decimal)
Declaration
public static void Write(decimal value)
Parameters
| Type |
Name |
Description |
| decimal |
value |
|
|
Edit this page
View Source
Write(double)
Declaration
public static void Write(double value)
Parameters
| Type |
Name |
Description |
| double |
value |
|
|
Edit this page
View Source
Write(int)
Declaration
public static void Write(int value)
Parameters
| Type |
Name |
Description |
| int |
value |
|
|
Edit this page
View Source
Write(long)
Declaration
public static void Write(long value)
Parameters
| Type |
Name |
Description |
| long |
value |
|
|
Edit this page
View Source
Write(object)
Declaration
public static void Write(object value)
Parameters
| Type |
Name |
Description |
| object |
value |
|
|
Edit this page
View Source
Write(float)
Declaration
public static void Write(float value)
Parameters
| Type |
Name |
Description |
| float |
value |
|
|
Edit this page
View Source
Write(string)
Declaration
public static void Write(string value)
Parameters
| Type |
Name |
Description |
| string |
value |
|
|
Edit this page
View Source
Write(string, object)
Declaration
public static void Write(string format, object arg0)
Parameters
|
Edit this page
View Source
Write(string, object, object)
Declaration
public static void Write(string format, object arg0, object arg1)
Parameters
|
Edit this page
View Source
Write(string, object, object, object)
Declaration
public static void Write(string format, object arg0, object arg1, object arg2)
Parameters
|
Edit this page
View Source
Write(string, object, object, object, object)
Declaration
public static void Write(string format, object arg0, object arg1, object arg2, object arg3)
Parameters
|
Edit this page
View Source
Write(string, params object[])
Declaration
public static void Write(string format, params object[] arg)
Parameters
|
Edit this page
View Source
Write(uint)
Declaration
public static void Write(uint value)
Parameters
| Type |
Name |
Description |
| uint |
value |
|
|
Edit this page
View Source
Write(ulong)
Declaration
public static void Write(ulong value)
Parameters
| Type |
Name |
Description |
| ulong |
value |
|
|
Edit this page
View Source
WriteLine()
Declaration
public static void WriteLine()
|
Edit this page
View Source
WriteLine(bool)
Declaration
public static void WriteLine(bool value)
Parameters
| Type |
Name |
Description |
| bool |
value |
|
|
Edit this page
View Source
WriteLine(char)
Declaration
public static void WriteLine(char value)
Parameters
| Type |
Name |
Description |
| char |
value |
|
|
Edit this page
View Source
WriteLine(char[])
Declaration
public static void WriteLine(char[] buffer)
Parameters
| Type |
Name |
Description |
| char[] |
buffer |
|
|
Edit this page
View Source
WriteLine(char[], int, int)
Declaration
public static void WriteLine(char[] buffer, int index, int count)
Parameters
| Type |
Name |
Description |
| char[] |
buffer |
|
| int |
index |
|
| int |
count |
|
|
Edit this page
View Source
WriteLine(decimal)
Declaration
public static void WriteLine(decimal value)
Parameters
| Type |
Name |
Description |
| decimal |
value |
|
|
Edit this page
View Source
WriteLine(double)
Declaration
public static void WriteLine(double value)
Parameters
| Type |
Name |
Description |
| double |
value |
|
|
Edit this page
View Source
WriteLine(int)
Declaration
public static void WriteLine(int value)
Parameters
| Type |
Name |
Description |
| int |
value |
|
|
Edit this page
View Source
WriteLine(long)
Declaration
public static void WriteLine(long value)
Parameters
| Type |
Name |
Description |
| long |
value |
|
|
Edit this page
View Source
WriteLine(object)
Declaration
public static void WriteLine(object value)
Parameters
| Type |
Name |
Description |
| object |
value |
|
|
Edit this page
View Source
WriteLine(float)
Declaration
public static void WriteLine(float value)
Parameters
| Type |
Name |
Description |
| float |
value |
|
|
Edit this page
View Source
WriteLine(string)
Declaration
public static void WriteLine(string value)
Parameters
| Type |
Name |
Description |
| string |
value |
|
|
Edit this page
View Source
WriteLine(string, object)
Declaration
public static void WriteLine(string format, object arg0)
Parameters
|
Edit this page
View Source
WriteLine(string, object, object)
Declaration
public static void WriteLine(string format, object arg0, object arg1)
Parameters
|
Edit this page
View Source
WriteLine(string, object, object, object)
Declaration
public static void WriteLine(string format, object arg0, object arg1, object arg2)
Parameters
|
Edit this page
View Source
WriteLine(string, object, object, object, object)
Declaration
public static void WriteLine(string format, object arg0, object arg1, object arg2, object arg3)
Parameters
|
Edit this page
View Source
WriteLine(string, params object[])
Declaration
public static void WriteLine(string format, params object[] arg)
Parameters
|
Edit this page
View Source
WriteLine(uint)
Declaration
public static void WriteLine(uint value)
Parameters
| Type |
Name |
Description |
| uint |
value |
|
|
Edit this page
View Source
WriteLine(ulong)
Declaration
public static void WriteLine(ulong value)
Parameters
| Type |
Name |
Description |
| ulong |
value |
|