C# Class IrcShark.Extensions.Terminal.LineEditor

Afficher le fichier Open project: hapm/IrcShark

Méthodes publiques

Свойство Type Description
AutoCompleteEvent AutoCompleteHandler

Private Properties

Свойство Type Description
TextToRenderPos int
TextToScreenPos int
WordBackward int
WordForward int

Méthodes publiques

Méthode Description
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
Edit ( string prompt, string initial ) : string
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
LineEditor ( string name ) : System
LineEditor ( string name, int histsize ) : System
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
UpdateCursor ( int newpos ) : void
UpdateHomeRow ( int screenpos ) : void

Private Methods

Méthode Description
TextToRenderPos ( int pos ) : int
TextToScreenPos ( int pos ) : int
WordBackward ( int p ) : int
WordForward ( int p ) : int

Method Details

CmdBackspace() public méthode

public CmdBackspace ( ) : void
Résultat void

CmdBackwardWord() public méthode

public CmdBackwardWord ( ) : void
Résultat void

CmdDebug() public méthode

public CmdDebug ( ) : void
Résultat void

CmdDeleteBackword() public méthode

public CmdDeleteBackword ( ) : void
Résultat void

CmdDeleteChar() public méthode

public CmdDeleteChar ( ) : void
Résultat void

CmdDeleteWord() public méthode

public CmdDeleteWord ( ) : void
Résultat void

CmdDone() public méthode

public CmdDone ( ) : void
Résultat void

CmdEnd() public méthode

public CmdEnd ( ) : void
Résultat void

CmdForwardWord() public méthode

public CmdForwardWord ( ) : void
Résultat void

CmdHistoryNext() public méthode

public CmdHistoryNext ( ) : void
Résultat void

CmdHistoryPrev() public méthode

public CmdHistoryPrev ( ) : void
Résultat void

CmdHome() public méthode

public CmdHome ( ) : void
Résultat void

CmdKillToEOF() public méthode

public CmdKillToEOF ( ) : void
Résultat void

CmdLeft() public méthode

public CmdLeft ( ) : void
Résultat void

CmdRefresh() public méthode

public CmdRefresh ( ) : void
Résultat void

CmdReverseSearch() public méthode

public CmdReverseSearch ( ) : void
Résultat void

CmdRight() public méthode

public CmdRight ( ) : void
Résultat void

CmdTabOrComplete() public méthode

public CmdTabOrComplete ( ) : void
Résultat void

CmdYank() public méthode

public CmdYank ( ) : void
Résultat void

ComputeRendered() public méthode

public ComputeRendered ( ) : void
Résultat void

Edit() public méthode

public Edit ( string prompt, string initial ) : string
prompt string
initial string
Résultat string

EditLoop() public méthode

public EditLoop ( ) : void
Résultat void

ForceCursor() public méthode

public ForceCursor ( int newpos ) : void
newpos int
Résultat void

HandleChar() public méthode

public HandleChar ( char c ) : void
c char
Résultat void

HistoryUpdateLine() public méthode

public HistoryUpdateLine ( ) : void
Résultat void

InitText() public méthode

public InitText ( string initial ) : void
initial string
Résultat void

InsertChar() public méthode

public InsertChar ( char c ) : void
c char
Résultat void

InsertTextAtCursor() public méthode

public InsertTextAtCursor ( string str ) : void
str string
Résultat void

InterruptEdit() public méthode

public InterruptEdit ( object sender, ConsoleCancelEventArgs a ) : void
sender object
a System.ConsoleCancelEventArgs
Résultat void

LineEditor() public méthode

public LineEditor ( string name ) : System
name string
Résultat System

LineEditor() public méthode

public LineEditor ( string name, int histsize ) : System
name string
histsize int
Résultat System

Render() public méthode

public Render ( ) : void
Résultat void

RenderAfter() public méthode

public RenderAfter ( int p ) : void
p int
Résultat void

RenderFrom() public méthode

public RenderFrom ( int pos ) : void
pos int
Résultat void

ReverseSearch() public méthode

public ReverseSearch ( ) : void
Résultat void

SearchAppend() public méthode

public SearchAppend ( char c ) : void
c char
Résultat void

SetPrompt() public méthode

public SetPrompt ( string newprompt ) : void
newprompt string
Résultat void

SetSearchPrompt() public méthode

public SetSearchPrompt ( string s ) : void
s string
Résultat void

SetText() public méthode

public SetText ( string newtext ) : void
newtext string
Résultat void

UpdateCursor() public méthode

public UpdateCursor ( int newpos ) : void
newpos int
Résultat void

UpdateHomeRow() public méthode

public UpdateHomeRow ( int screenpos ) : void
screenpos int
Résultat void

Property Details

AutoCompleteEvent public_oe property

Invoked when the user requests auto-completion using the tab character
The result is null for no values found, an array with a single string, in that case the string should be the text to be inserted for example if the word at pos is "T", the result for a completion of "ToString" should be "oString", not "ToString". When there are multiple results, the result should be the full text
public AutoCompleteHandler AutoCompleteEvent
Résultat AutoCompleteHandler