C# Class Mono.Terminal.LineEditor

Show file Open project: scriptcs/scriptcs Class Usage Examples

Public Properties

Property Type Description
AutoCompleteEvent AutoCompleteHandler

Private Properties

Property Type Description
TextToRenderPos int
TextToScreenPos int
WordBackward int
WordForward int

Public Methods

Method 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
SaveHistory ( ) : 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

Method Description
TextToRenderPos ( int pos ) : int
TextToScreenPos ( int pos ) : int
WordBackward ( int p ) : int
WordForward ( int p ) : int

Method Details

CmdBackspace() public method

public CmdBackspace ( ) : void
return void

CmdBackwardWord() public method

public CmdBackwardWord ( ) : void
return void

CmdDebug() public method

public CmdDebug ( ) : void
return void

CmdDeleteBackword() public method

public CmdDeleteBackword ( ) : void
return void

CmdDeleteChar() public method

public CmdDeleteChar ( ) : void
return void

CmdDeleteWord() public method

public CmdDeleteWord ( ) : void
return void

CmdDone() public method

public CmdDone ( ) : void
return void

CmdEnd() public method

public CmdEnd ( ) : void
return void

CmdForwardWord() public method

public CmdForwardWord ( ) : void
return void

CmdHistoryNext() public method

public CmdHistoryNext ( ) : void
return void

CmdHistoryPrev() public method

public CmdHistoryPrev ( ) : void
return void

CmdHome() public method

public CmdHome ( ) : void
return void

CmdKillToEOF() public method

public CmdKillToEOF ( ) : void
return void

CmdLeft() public method

public CmdLeft ( ) : void
return void

CmdRefresh() public method

public CmdRefresh ( ) : void
return void

CmdReverseSearch() public method

public CmdReverseSearch ( ) : void
return void

CmdRight() public method

public CmdRight ( ) : void
return void

CmdTabOrComplete() public method

public CmdTabOrComplete ( ) : void
return void

CmdYank() public method

public CmdYank ( ) : void
return void

ComputeRendered() public method

public ComputeRendered ( ) : void
return void

Edit() public method

public Edit ( string prompt, string initial ) : string
prompt string
initial string
return string

EditLoop() public method

public EditLoop ( ) : void
return void

ForceCursor() public method

public ForceCursor ( int newpos ) : void
newpos int
return void

HandleChar() public method

public HandleChar ( char c ) : void
c char
return void

HistoryUpdateLine() public method

public HistoryUpdateLine ( ) : void
return void

InitText() public method

public InitText ( string initial ) : void
initial string
return void

InsertChar() public method

public InsertChar ( char c ) : void
c char
return void

InsertTextAtCursor() public method

public InsertTextAtCursor ( string str ) : void
str string
return void

InterruptEdit() public method

public InterruptEdit ( object sender, ConsoleCancelEventArgs a ) : void
sender object
a System.ConsoleCancelEventArgs
return void

LineEditor() public method

public LineEditor ( string name ) : System
name string
return System

LineEditor() public method

public LineEditor ( string name, int histsize ) : System
name string
histsize int
return System

Render() public method

public Render ( ) : void
return void

RenderAfter() public method

public RenderAfter ( int p ) : void
p int
return void

RenderFrom() public method

public RenderFrom ( int pos ) : void
pos int
return void

ReverseSearch() public method

public ReverseSearch ( ) : void
return void

SaveHistory() public method

public SaveHistory ( ) : void
return void

SearchAppend() public method

public SearchAppend ( char c ) : void
c char
return void

SetPrompt() public method

public SetPrompt ( string newprompt ) : void
newprompt string
return void

SetSearchPrompt() public method

public SetSearchPrompt ( string s ) : void
s string
return void

SetText() public method

public SetText ( string newtext ) : void
newtext string
return void

UpdateCursor() public method

public UpdateCursor ( int newpos ) : void
newpos int
return void

UpdateHomeRow() public method

public UpdateHomeRow ( int screenpos ) : void
screenpos int
return void

Property Details

AutoCompleteEvent public 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
return AutoCompleteHandler