C# 클래스 IrcShark.Extensions.Terminal.TerminalExtension

상속: IrcShark.Extensions.Extension
파일 보기 프로젝트 열기: hapm/IrcShark 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
AutoCompleteList List

공개 메소드들

메소드 설명
ExecuteCommand ( CommandCall call ) : void

Executes the command with the given name.

ReadCommand ( ) : CommandCall

Reads a command from the Terminal.

ResetColor ( ) : void

Resets the foreground and background color of the terminal.

Start ( IrcShark context ) : void

Starts the TerminalExtension.

Stop ( ) : void

Stops the execution of the TerminalExtension.

TerminalExtension ( ) : System

Initializes a new instance of the TerminalExtension class.

TerminalLogger ( object sender, LogMessage msg ) : void

This is a replacement logger for the IrcSharkApplication.DefaultConsoleLogger.

The default loghandler is not compatible with the TerminalExtension and is replaced with this loghandler.

Write ( string format ) : void

Writes text to the terminal.

WriteLine ( ) : void

Writes a linebreak to the terminal.

WriteLine ( string line ) : void

Writes a complete line and appends a linebreak at the end.

비공개 메소드들

메소드 설명
AddCommands ( ) : void

Adds all commands.

AutoComplete ( string text, int cursor ) : Completion

Autocompletes the word, the cursor is currently on.

Run ( ) : void

This method is used by the internal reading thread for reading a command from the terminal.

drawStartupLogo ( ) : void

메소드 상세

ExecuteCommand() 공개 메소드

Executes the command with the given name.
public ExecuteCommand ( CommandCall call ) : void
call CommandCall The CommandCall to execute.
리턴 void

ReadCommand() 공개 메소드

Reads a command from the Terminal.
public ReadCommand ( ) : CommandCall
리턴 CommandCall

ResetColor() 공개 메소드

Resets the foreground and background color of the terminal.
public ResetColor ( ) : void
리턴 void

Start() 공개 메소드

Starts the TerminalExtension.
public Start ( IrcShark context ) : void
context IrcShark
리턴 void

Stop() 공개 메소드

Stops the execution of the TerminalExtension.
public Stop ( ) : void
리턴 void

TerminalExtension() 공개 메소드

Initializes a new instance of the TerminalExtension class.
public TerminalExtension ( ) : System
리턴 System

TerminalLogger() 공개 메소드

This is a replacement logger for the IrcSharkApplication.DefaultConsoleLogger.
The default loghandler is not compatible with the TerminalExtension and is replaced with this loghandler.
public TerminalLogger ( object sender, LogMessage msg ) : void
sender object The Logger what send the message.
msg IrcShark.LogMessage The Message.
리턴 void

Write() 공개 메소드

Writes text to the terminal.
public Write ( string format ) : void
format string
리턴 void

WriteLine() 공개 메소드

Writes a linebreak to the terminal.
public WriteLine ( ) : void
리턴 void

WriteLine() 공개 메소드

Writes a complete line and appends a linebreak at the end.
public WriteLine ( string line ) : void
line string The line to write.
리턴 void

프로퍼티 상세

AutoCompleteList 공개적으로 프로퍼티

Saves a list of all commands added to the terminal.
public List AutoCompleteList
리턴 List