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