C# Class Universe.Framework.ConsoleFramework.LocalConsole

A console that uses cursor control and color
Inheritance: CommandConsole
Datei anzeigen Open project: Virtual-Universe/Virtual-Universe

Protected Properties

Property Type Description
prompt string

Public Methods

Method Description
Initialize ( IConfigSource source, ISimulationBase simBase ) : void
LocalInitialize ( IConfigSource source, ISimulationBase simBase ) : void
LockOutput ( ) : void
Output ( string text, Level level ) : void
ReadLine ( string p, bool isCommand, bool e ) : string
UnlockOutput ( ) : void

Private Methods

Method Description
AddToHistory ( string text ) : void
ContextHelp ( ) : bool
DeriveColor ( string input ) : ConsoleColor
SetCursorLeft ( int left ) : int

Set the cursor column.

SetCursorTop ( int top ) : int

Set the cursor row.

Show ( ) : void
WriteColorText ( ConsoleColor color, string sender ) : void
WriteLocalText ( string text, Level level ) : void

Method Details

Initialize() public method

public Initialize ( IConfigSource source, ISimulationBase simBase ) : void
source IConfigSource
simBase ISimulationBase
return void

LocalInitialize() public method

public LocalInitialize ( IConfigSource source, ISimulationBase simBase ) : void
source IConfigSource
simBase ISimulationBase
return void

LockOutput() public method

public LockOutput ( ) : void
return void

Output() public method

public Output ( string text, Level level ) : void
text string
level Level
return void

ReadLine() public method

public ReadLine ( string p, bool isCommand, bool e ) : string
p string
isCommand bool
e bool
return string

UnlockOutput() public method

public UnlockOutput ( ) : void
return void

Property Details

prompt protected_oe property

protected string prompt
return string