C# Class System.TermInfoDriver

Inheritance: IConsoleDriver
显示文件 Open project: vargaz/mono Class Usage Examples

Private Properties

Property Type Description
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

Public Methods

Method Description
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

Private Methods

Method Description
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

Method Details

Beep() public method

public Beep ( int frequency, int duration ) : void
frequency int
duration int
return void

Clear() public method

public Clear ( ) : void
return void

Init() public method

public Init ( ) : void
return void

IsSpecialKey() public method

public IsSpecialKey ( ConsoleKeyInfo key ) : bool
key ConsoleKeyInfo
return bool

IsSpecialKey() public method

public IsSpecialKey ( char c ) : bool
c char
return bool

MoveBufferArea() public method

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
return void

Read() public method

public Read ( [ dest, int index, int count ) : int
dest [
index int
count int
return int

ReadKey() public method

public ReadKey ( bool intercept ) : ConsoleKeyInfo
intercept bool
return ConsoleKeyInfo

ReadLine() public method

public ReadLine ( ) : string
return string

ResetColor() public method

public ResetColor ( ) : void
return void

SetBufferSize() public method

public SetBufferSize ( int width, int height ) : void
width int
height int
return void

SetCursorPosition() public method

public SetCursorPosition ( int left, int top ) : void
left int
top int
return void

SetWindowPosition() public method

public SetWindowPosition ( int left, int top ) : void
left int
top int
return void

SetWindowSize() public method

public SetWindowSize ( int width, int height ) : void
width int
height int
return void

TermInfoDriver() public method

public TermInfoDriver ( ) : System.Collections
return System.Collections

TermInfoDriver() public method

public TermInfoDriver ( string term ) : System.Collections
term string
return System.Collections

WriteSpecialKey() public method

public WriteSpecialKey ( ConsoleKeyInfo key ) : void
key ConsoleKeyInfo
return void

WriteSpecialKey() public method

public WriteSpecialKey ( char c ) : void
c char
return void