C# Класс System.TermInfoDriver

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

Private Properties

Свойство Тип Описание
AddStringMapping void
AddToBuffer void
AdjustBuffer void
ChangeColor void
CheckWindowDimensions void
CreateKeyInfoFromInt ConsoleKeyInfo
CreateKeyMap void
Echo void
EchoFlush void
GetCursorPosition void
GetKeyFromBuffer object
IncrementX void
InitKeys void
InputPending bool
QueueEcho void
ReadKeyInternal ConsoleKeyInfo
SearchTerminfo string
TryTermInfoDir string
WriteConsole void

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

Метод Описание
Beep ( int frequency, int duration ) : void
Clear ( ) : void
Init ( ) : void
IsSpecialKey ( ConsoleKeyInfo key ) : bool
IsSpecialKey ( char c ) : bool
MoveBufferArea ( int sourceLeft, int sourceTop, int sourceWidth, int sourceHeight, int targetLeft, int targetTop, Char sourceChar, ConsoleColor sourceForeColor, ConsoleColor sourceBackColor ) : void
Read ( [ dest, int index, int count ) : 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
TermInfoDriver ( ) : System.Collections
TermInfoDriver ( string term ) : System.Collections
WriteSpecialKey ( ConsoleKeyInfo key ) : void
WriteSpecialKey ( char c ) : void

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

Метод Описание
AddStringMapping ( TermInfoStrings s ) : void
AddToBuffer ( int b ) : void
AdjustBuffer ( ) : void
ChangeColor ( string format, ConsoleColor color ) : void
CheckWindowDimensions ( ) : void
CreateKeyInfoFromInt ( int n, bool alt ) : ConsoleKeyInfo
CreateKeyMap ( ) : void
Echo ( ConsoleKeyInfo key ) : void
EchoFlush ( ) : void
GetCursorPosition ( ) : void
GetKeyFromBuffer ( bool cooked ) : object
IncrementX ( ) : void
InitKeys ( ) : void
InputPending ( ) : bool
QueueEcho ( char c ) : void
ReadKeyInternal ( bool &fresh ) : ConsoleKeyInfo
SearchTerminfo ( string term ) : string
TryTermInfoDir ( string dir, string term ) : string
WriteConsole ( string str ) : void

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

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

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

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

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

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

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

IsSpecialKey() публичный метод

public IsSpecialKey ( ConsoleKeyInfo key ) : bool
key ConsoleKeyInfo
Результат bool

IsSpecialKey() публичный метод

public IsSpecialKey ( char c ) : bool
c char
Результат bool

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

public 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 Read ( [ dest, int index, int count ) : int
dest [
index int
count int
Результат int

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

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

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

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

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

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

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

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

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

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

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

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

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

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

TermInfoDriver() публичный метод

public TermInfoDriver ( ) : System.Collections
Результат System.Collections

TermInfoDriver() публичный метод

public TermInfoDriver ( string term ) : System.Collections
term string
Результат System.Collections

WriteSpecialKey() публичный метод

public WriteSpecialKey ( ConsoleKeyInfo key ) : void
key ConsoleKeyInfo
Результат void

WriteSpecialKey() публичный метод

public WriteSpecialKey ( char c ) : void
c char
Результат void