C# Класс System.ConsoleDriver

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Beep ( int frequency, int duration ) : void
Clear ( ) : void
Init ( ) : void
MoveBufferArea ( int sourceLeft, int sourceTop, int sourceWidth, int sourceHeight, int targetLeft, int targetTop ) : void
MoveBufferArea ( int sourceLeft, int sourceTop, int sourceWidth, int sourceHeight, int targetLeft, int targetTop, char sourceChar, ConsoleColor sourceForeColor, ConsoleColor sourceBackColor ) : void
Read ( ) : int
ReadKey ( bool intercept ) : ConsoleKeyInfo
ReadLine ( ) : string
ResetColor ( ) : void
SetBufferSize ( int width, int height ) : void
SetCursorPosition ( int left, int top ) : void
SetWindowPosition ( int left, int top ) : void
SetWindowSize ( int width, int height ) : void

Приватные методы

Метод Описание
ConsoleDriver ( ) : System.IO
CreateNullConsoleDriver ( ) : IConsoleDriver
CreateTermInfoDriver ( string term ) : IConsoleDriver
CreateWindowsConsoleDriver ( ) : IConsoleDriver
InternalKeyAvailable ( int ms_timeout ) : int
Isatty ( IntPtr handle ) : bool
SetBreak ( bool wantBreak ) : bool
SetEcho ( bool wantEcho ) : bool
TtySetup ( string keypadXmit, string teardown, byte &control_characters, int &address ) : bool

Описание методов

Beep() публичный статический метод

public static Beep ( int frequency, int duration ) : void
frequency int
duration int
Результат void

Clear() публичный статический метод

public static Clear ( ) : void
Результат void

Init() публичный статический метод

public static Init ( ) : void
Результат void

MoveBufferArea() публичный статический метод

public static MoveBufferArea ( int sourceLeft, int sourceTop, int sourceWidth, int sourceHeight, int targetLeft, int targetTop ) : void
sourceLeft int
sourceTop int
sourceWidth int
sourceHeight int
targetLeft int
targetTop int
Результат void

MoveBufferArea() публичный статический метод

public static MoveBufferArea ( int sourceLeft, int sourceTop, int sourceWidth, int sourceHeight, int targetLeft, int targetTop, char sourceChar, ConsoleColor sourceForeColor, ConsoleColor sourceBackColor ) : void
sourceLeft int
sourceTop int
sourceWidth int
sourceHeight int
targetLeft int
targetTop int
sourceChar char
sourceForeColor ConsoleColor
sourceBackColor ConsoleColor
Результат void

Read() публичный статический метод

public static Read ( ) : int
Результат int

ReadKey() публичный статический метод

public static ReadKey ( bool intercept ) : ConsoleKeyInfo
intercept bool
Результат ConsoleKeyInfo

ReadLine() публичный статический метод

public static ReadLine ( ) : string
Результат string

ResetColor() публичный статический метод

public static ResetColor ( ) : void
Результат void

SetBufferSize() публичный статический метод

public static SetBufferSize ( int width, int height ) : void
width int
height int
Результат void

SetCursorPosition() публичный статический метод

public static SetCursorPosition ( int left, int top ) : void
left int
top int
Результат void

SetWindowPosition() публичный статический метод

public static SetWindowPosition ( int left, int top ) : void
left int
top int
Результат void

SetWindowSize() публичный статический метод

public static SetWindowSize ( int width, int height ) : void
width int
height int
Результат void