C# Class System.ConsoleDriver

Mostrar archivo Open project: runefs/Marvin Class Usage Examples

Public Methods

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

Private Methods

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

Method Details

Beep() public static method

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

Clear() public static method

public static Clear ( ) : void
return void

Init() public static method

public static Init ( ) : void
return void

MoveBufferArea() public static method

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

MoveBufferArea() public static method

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

Read() public static method

public static Read ( ) : int
return int

ReadKey() public static method

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

ReadLine() public static method

public static ReadLine ( ) : string
return string

ResetColor() public static method

public static ResetColor ( ) : void
return void

SetBufferSize() public static method

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

SetCursorPosition() public static method

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

SetWindowPosition() public static method

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

SetWindowSize() public static method

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