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

This class allows the TerminalExtension to use the local Console as as a terminal for a user.
상속: ITerminal
파일 보기 프로젝트 열기: hapm/IrcShark

Private Properties

프로퍼티 타입 설명
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

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
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

메소드 상세

ConsoleTerminal() 공개 메소드

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

ConsoleTerminal() 공개 메소드

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

Edit() 공개 메소드

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.
리턴 string

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

StopReading() 공개 메소드

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

Write() 공개 메소드

Writes the given text to the terminal.
public Write ( string text ) : void
text string The text to write.
리턴 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