Class ConsoleImpl
Inheritance
System.Object
ConsoleImpl
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: Cosmos.System2_Plugs.dll
Syntax
public static class ConsoleImpl
Methods
|
Improve this Doc
View Source
Beep()
Declaration
public static void Beep()
|
Improve this Doc
View Source
Beep(Int32, Int32)
The ArgumentOutOfRangeException check is now done at driver level in PCSpeaker - is it still needed here?
Declaration
public static void Beep(int aFrequency, int aDuration)
Parameters
Type |
Name |
Description |
System.Int32 |
aFrequency |
|
System.Int32 |
aDuration |
|
|
Improve this Doc
View Source
Clear()
Declaration
public static void Clear()
|
Improve this Doc
View Source
get_BackgroundColor()
Declaration
public static ConsoleColor get_BackgroundColor()
Returns
Type |
Description |
System.ConsoleColor |
|
|
Improve this Doc
View Source
get_BufferHeight()
Declaration
public static int get_BufferHeight()
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
get_BufferWidth()
Declaration
public static int get_BufferWidth()
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
get_CapsLock()
Declaration
public static bool get_CapsLock()
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
get_CursorLeft()
Declaration
public static int get_CursorLeft()
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
get_CursorSize()
Declaration
public static int get_CursorSize()
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
get_CursorTop()
Declaration
public static int get_CursorTop()
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
get_CursorVisible()
Declaration
public static bool get_CursorVisible()
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
get_ForegroundColor()
Declaration
public static ConsoleColor get_ForegroundColor()
Returns
Type |
Description |
System.ConsoleColor |
|
|
Improve this Doc
View Source
Declaration
public static Encoding get_InputEncoding()
Returns
Type |
Description |
System.Text.Encoding |
|
|
Improve this Doc
View Source
get_KeyAvailable()
Declaration
public static bool get_KeyAvailable()
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
get_LargestWindowHeight()
Declaration
public static int get_LargestWindowHeight()
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
get_LargestWindowWidth()
Declaration
public static int get_LargestWindowWidth()
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
get_NumberLock()
Declaration
public static bool get_NumberLock()
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
get_OutputEncoding()
Declaration
public static Encoding get_OutputEncoding()
Returns
Type |
Description |
System.Text.Encoding |
|
|
Improve this Doc
View Source
get_Title()
Declaration
public static string get_Title()
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Declaration
public static bool get_TreatControlCAsInput()
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
get_WindowHeight()
Declaration
public static int get_WindowHeight()
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
get_WindowLeft()
Declaration
public static int get_WindowLeft()
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
get_WindowTop()
Declaration
public static int get_WindowTop()
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
get_WindowWidth()
Declaration
public static int get_WindowWidth()
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
GetCursorPosition()
Declaration
public static (int Left, int Top) GetCursorPosition()
Returns
Type |
Description |
System.ValueTuple<System.Int32, System.Int32> |
|
|
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
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
set_BackgroundColor(ConsoleColor)
Declaration
public static void set_BackgroundColor(ConsoleColor value)
Parameters
Type |
Name |
Description |
System.ConsoleColor |
value |
|
|
Improve this Doc
View Source
set_BufferHeight(Int32)
Declaration
public static void set_BufferHeight(int aHeight)
Parameters
Type |
Name |
Description |
System.Int32 |
aHeight |
|
|
Improve this Doc
View Source
set_BufferWidth(Int32)
Declaration
public static void set_BufferWidth(int aWidth)
Parameters
Type |
Name |
Description |
System.Int32 |
aWidth |
|
|
Improve this Doc
View Source
set_CursorLeft(Int32)
Declaration
public static void set_CursorLeft(int x)
Parameters
Type |
Name |
Description |
System.Int32 |
x |
|
|
Improve this Doc
View Source
set_CursorSize(Int32)
Declaration
public static void set_CursorSize(int aSize)
Parameters
Type |
Name |
Description |
System.Int32 |
aSize |
|
|
Improve this Doc
View Source
set_CursorTop(Int32)
Declaration
public static void set_CursorTop(int y)
Parameters
Type |
Name |
Description |
System.Int32 |
y |
|
|
Improve this Doc
View Source
set_CursorVisible(Boolean)
Declaration
public static void set_CursorVisible(bool value)
Parameters
Type |
Name |
Description |
System.Boolean |
value |
|
|
Improve this Doc
View Source
set_ForegroundColor(ConsoleColor)
Declaration
public static void set_ForegroundColor(ConsoleColor value)
Parameters
Type |
Name |
Description |
System.ConsoleColor |
value |
|
|
Improve this Doc
View Source
set_InputEncoding(Encoding)
Declaration
public static void set_InputEncoding(Encoding value)
Parameters
Type |
Name |
Description |
System.Text.Encoding |
value |
|
|
Improve this Doc
View Source
set_OutputEncoding(Encoding)
Declaration
public static void set_OutputEncoding(Encoding value)
Parameters
Type |
Name |
Description |
System.Text.Encoding |
value |
|
|
Improve this Doc
View Source
set_Title(String)
Declaration
public static void set_Title(string value)
Parameters
Type |
Name |
Description |
System.String |
value |
|
|
Improve this Doc
View Source
Declaration
public static void set_TreatControlCAsInput(bool value)
Parameters
Type |
Name |
Description |
System.Boolean |
value |
|
|
Improve this Doc
View Source
set_WindowHeight(Int32)
Declaration
public static void set_WindowHeight(int value)
Parameters
Type |
Name |
Description |
System.Int32 |
value |
|
|
Improve this Doc
View Source
set_WindowLeft(Int32)
Declaration
public static void set_WindowLeft(int value)
Parameters
Type |
Name |
Description |
System.Int32 |
value |
|
|
Improve this Doc
View Source
set_WindowTop(Int32)
Declaration
public static void set_WindowTop(int value)
Parameters
Type |
Name |
Description |
System.Int32 |
value |
|
|
Improve this Doc
View Source
set_WindowWidth(Int32)
Declaration
public static void set_WindowWidth(int value)
Parameters
Type |
Name |
Description |
System.Int32 |
value |
|
|
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
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 aBool)
Parameters
Type |
Name |
Description |
System.Boolean |
aBool |
|
|
Improve this Doc
View Source
Write(Char)
Declaration
public static void Write(char aChar)
Parameters
Type |
Name |
Description |
System.Char |
aChar |
|
|
Improve this Doc
View Source
Write(Char[])
Declaration
public static void Write(char[] aBuffer)
Parameters
Type |
Name |
Description |
System.Char[] |
aBuffer |
|
|
Improve this Doc
View Source
Write(Char[], Int32, Int32)
Declaration
public static void Write(char[] aBuffer, int aIndex, int aCount)
Parameters
Type |
Name |
Description |
System.Char[] |
aBuffer |
|
System.Int32 |
aIndex |
|
System.Int32 |
aCount |
|
|
Improve this Doc
View Source
Write(Double)
Declaration
public static void Write(double aDouble)
Parameters
Type |
Name |
Description |
System.Double |
aDouble |
|
|
Improve this Doc
View Source
Write(Int32)
Declaration
public static void Write(int aInt)
Parameters
Type |
Name |
Description |
System.Int32 |
aInt |
|
|
Improve this Doc
View Source
Write(Int64)
Declaration
public static void Write(long aLong)
Parameters
Type |
Name |
Description |
System.Int64 |
aLong |
|
|
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 aFloat)
Parameters
Type |
Name |
Description |
System.Single |
aFloat |
|
|
Improve this Doc
View Source
Write(String)
Declaration
public static void Write(string aText)
Parameters
Type |
Name |
Description |
System.String |
aText |
|
|
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[])
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 aInt)
Parameters
Type |
Name |
Description |
System.UInt32 |
aInt |
|
|
Improve this Doc
View Source
Write(UInt64)
Declaration
public static void Write(ulong aLong)
Parameters
Type |
Name |
Description |
System.UInt64 |
aLong |
|
|
Improve this Doc
View Source
WriteLine()
Declaration
public static void WriteLine()
|
Improve this Doc
View Source
WriteLine(Boolean)
Declaration
public static void WriteLine(bool aBool)
Parameters
Type |
Name |
Description |
System.Boolean |
aBool |
|
|
Improve this Doc
View Source
WriteLine(Char)
Declaration
public static void WriteLine(char aChar)
Parameters
Type |
Name |
Description |
System.Char |
aChar |
|
|
Improve this Doc
View Source
WriteLine(Char[])
Declaration
public static void WriteLine(char[] aBuffer)
Parameters
Type |
Name |
Description |
System.Char[] |
aBuffer |
|
|
Improve this Doc
View Source
WriteLine(Char[], Int32, Int32)
Declaration
public static void WriteLine(char[] aBuffer, int aIndex, int aCount)
Parameters
Type |
Name |
Description |
System.Char[] |
aBuffer |
|
System.Int32 |
aIndex |
|
System.Int32 |
aCount |
|
|
Improve this Doc
View Source
WriteLine(Double)
Declaration
public static void WriteLine(double aDouble)
Parameters
Type |
Name |
Description |
System.Double |
aDouble |
|
|
Improve this Doc
View Source
WriteLine(Int32)
Declaration
public static void WriteLine(int aInt)
Parameters
Type |
Name |
Description |
System.Int32 |
aInt |
|
|
Improve this Doc
View Source
WriteLine(Int64)
Declaration
public static void WriteLine(long aLong)
Parameters
Type |
Name |
Description |
System.Int64 |
aLong |
|
|
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 aFloat)
Parameters
Type |
Name |
Description |
System.Single |
aFloat |
|
|
Improve this Doc
View Source
WriteLine(String)
Declaration
public static void WriteLine(string aText)
Parameters
Type |
Name |
Description |
System.String |
aText |
|
|
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[])
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 aInt)
Parameters
Type |
Name |
Description |
System.UInt32 |
aInt |
|
|
Improve this Doc
View Source
WriteLine(UInt64)
Declaration
public static void WriteLine(ulong aLong)
Parameters
Type |
Name |
Description |
System.UInt64 |
aLong |
|