C# Класс IrcShark.Extensions.Terminal.TerminalExtension

Наследование: IrcShark.Extensions.Extension
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
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