C# Class IrcShark.Extensions.Terminal.ConsoleTerminal

This class allows the TerminalExtension to use the local Console as as a terminal for a user.
Inheritance: ITerminal
Afficher le fichier Open project: hapm/IrcShark

Private Properties

Свойство Type Description
Clear void
CmdBackspace void
CmdBackwardWord void
CmdDebug void
CmdDeleteBackword void
CmdDeleteChar void
CmdDeleteWord void
CmdDone void
CmdEnd void
CmdForwardWord void
CmdHistoryNext void
CmdHistoryPrev void
CmdHome void
CmdKillToEOF void
CmdLeft void
CmdRefresh void
CmdReverseSearch void
CmdRight void
CmdTabOrComplete void
CmdYank void
ComputeRendered void
EditLoop void
ForceCursor void
HandleChar void
HistoryUpdateLine void
InitText void
InsertChar void
InsertTextAtCursor void
InterruptEdit void
Render void
RenderAfter void
RenderFrom void
ReverseSearch void
SearchAppend void
SetPrompt void
SetSearchPrompt void
SetText void
TextToRenderPos int
TextToScreenPos int
UpdateCursor void
UpdateHomeRow void
WordBackward int
WordForward int
WriteWaitingRequests void

Méthodes publiques

Méthode Description
ConsoleTerminal ( ) : System

Initializes a new instance of the ConsoleTerminal class.

ConsoleTerminal ( int histsize ) : System

Initializes a new instance of the ConsoleTerminal class.

Edit ( string prompt, string initial ) : string

Starts the console editing.

ReadCommand ( ) : CommandCall

Reads a command from the terminal.

ResetColor ( ) : void

Resets the foreground and background color of the terminal.

StopReading ( ) : void

Stops to read a command from the terminal if it is reading at the moment.

Write ( string text ) : void

Writes the given 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.

Private Methods

Méthode Description
Clear ( ) : void
CmdBackspace ( ) : void
CmdBackwardWord ( ) : void
CmdDebug ( ) : void
CmdDeleteBackword ( ) : void
CmdDeleteChar ( ) : void
CmdDeleteWord ( ) : void
CmdDone ( ) : void
CmdEnd ( ) : void
CmdForwardWord ( ) : void
CmdHistoryNext ( ) : void
CmdHistoryPrev ( ) : void
CmdHome ( ) : void
CmdKillToEOF ( ) : void
CmdLeft ( ) : void
CmdRefresh ( ) : void
CmdReverseSearch ( ) : void
CmdRight ( ) : void
CmdTabOrComplete ( ) : void
CmdYank ( ) : void
ComputeRendered ( ) : void
EditLoop ( ) : void
ForceCursor ( int newpos ) : void
HandleChar ( char c ) : void
HistoryUpdateLine ( ) : void
InitText ( string initial ) : void
InsertChar ( char c ) : void
InsertTextAtCursor ( string str ) : void
InterruptEdit ( object sender, ConsoleCancelEventArgs a ) : void
Render ( ) : void
RenderAfter ( int p ) : void
RenderFrom ( int pos ) : void
ReverseSearch ( ) : void
SearchAppend ( char c ) : void
SetPrompt ( string newprompt ) : void
SetSearchPrompt ( string s ) : void
SetText ( string newtext ) : void
TextToRenderPos ( int pos ) : int
TextToScreenPos ( int pos ) : int
UpdateCursor ( int newpos ) : void
UpdateHomeRow ( int screenpos ) : void
WordBackward ( int p ) : int
WordForward ( int p ) : int
WriteWaitingRequests ( ) : void

Method Details

ConsoleTerminal() public méthode

Initializes a new instance of the ConsoleTerminal class.
public ConsoleTerminal ( ) : System
Résultat System

ConsoleTerminal() public méthode

Initializes a new instance of the ConsoleTerminal class.
public ConsoleTerminal ( int histsize ) : System
histsize int The size of the command history.
Résultat System

Edit() public méthode

Starts the console editing.
public Edit ( string prompt, string initial ) : string
prompt string The prompt in front of the edit space.
initial string The text, that should be shown at the beginning.
Résultat string

ReadCommand() public méthode

Reads a command from the terminal.
public ReadCommand ( ) : CommandCall
Résultat CommandCall

ResetColor() public méthode

Resets the foreground and background color of the terminal.
public ResetColor ( ) : void
Résultat void

StopReading() public méthode

Stops to read a command from the terminal if it is reading at the moment.
public StopReading ( ) : void
Résultat void

Write() public méthode

Writes the given text to the terminal.
public Write ( string text ) : void
text string The text to write.
Résultat void

WriteLine() public méthode

Writes a linebreak to the terminal.
public WriteLine ( ) : void
Résultat void

WriteLine() public méthode

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