C# Class kOS.Screen.Interpreter

Inheritance: TextEditor, IInterpreter
ファイルを表示 Open project: KSP-KOS/KOS Class Usage Examples

Public Methods

Method Description
GetCommandHistoryAbsolute ( int absoluteIndex ) : string
Interpreter ( SharedObjects shared ) : System
IsAtStartOfCommand ( ) : bool

Detect if the interpreter happens to be right at the start of a new command line.

IsWaitingForCommand ( ) : bool
PrintAt ( string textToPrint, int row, int column ) : void
Reset ( ) : void
SetInputLock ( bool isLocked ) : void
SpecialKey ( char key ) : bool
Type ( char ch ) : void

Protected Methods

Method Description
CompileCommand ( string commandText ) : void
NewLine ( ) : void
ProcessCommand ( string commandText ) : void

Private Methods

Method Description
AddCommandHistoryEntry ( string commandText ) : void
ShowCommandHistoryEntry ( int deltaIndex ) : void

Method Details

CompileCommand() protected method

protected CompileCommand ( string commandText ) : void
commandText string
return void

GetCommandHistoryAbsolute() public method

public GetCommandHistoryAbsolute ( int absoluteIndex ) : string
absoluteIndex int
return string

Interpreter() public method

public Interpreter ( SharedObjects shared ) : System
shared SharedObjects
return System

IsAtStartOfCommand() public method

Detect if the interpreter happens to be right at the start of a new command line.
public IsAtStartOfCommand ( ) : bool
return bool

IsWaitingForCommand() public method

public IsWaitingForCommand ( ) : bool
return bool

NewLine() protected method

protected NewLine ( ) : void
return void

PrintAt() public method

public PrintAt ( string textToPrint, int row, int column ) : void
textToPrint string
row int
column int
return void

ProcessCommand() protected method

protected ProcessCommand ( string commandText ) : void
commandText string
return void

Reset() public method

public Reset ( ) : void
return void

SetInputLock() public method

public SetInputLock ( bool isLocked ) : void
isLocked bool
return void

SpecialKey() public method

public SpecialKey ( char key ) : bool
key char
return bool

Type() public method

public Type ( char ch ) : void
ch char
return void