Method | Description | |
---|---|---|
AppendOutput ( string output, bool newLine = false, bool addPrompt = false, Color textColor = null, bool skipStyle = true ) : void |
Appends the output to the text box applying color etc according to the call.
|
|
ClearOutput ( ) : void |
Clears the output.
|
|
CommanderTextBox ( string prompt ) : System | ||
CommanderTextBox ( string prompt, IShellStatus shellStatus ) : System |
Initializes a new instance of the CommanderTextBox class.
|
|
Copy ( ) : void |
Copies the current selection in the text box to the Clipboard.
|
|
GetCurrentLine ( ) : int |
Returns the current line the carret is on
|
|
GetCurrentLineString ( int actualStartIndex ) : string |
Returns the user written input string that's on the current line.
|
|
Paste ( ) : void |
Replaces the current selection in the text box with the contents of the Clipboard.
|
|
Paste ( string text ) : void | ||
ReplaceCurrentLineWith ( string newText ) : void | ||
ScrollToBottom ( ) : void |
Scrolls to bottom of text box.
|
|
UpdatePosition ( ) : void |
Updates the position of the carred and makes sure that the text box is scrolled to the bottom.
|
Method | Description | |
---|---|---|
GetCurrentLineStartPosition ( ) : int |
Get's the starting char index for a line based on if a prompt is present or not.
|
|
GoToLineEnd ( ) : void |
Moves the carret to the last line and the last written character + 1
|
|
GoToLineStart ( ) : void |
Moves the carret to the last line and the first written character after the prompt - 1
|
|
IsCarretOnLastLine ( ) : bool | ||
OnKeyDown ( |
Raises the E:System.Windows.Forms.Control.KeyDown event.
|
|
PlaceCarretOnLastLine ( ) : void |
Places the carret on last line.
|
Method | Description | |
---|---|---|
HandleAutoComplete ( ) : bool |
Handles the auto complete of file system entries. Logic: When a user presses TAB, it will automatically show the next item available in that folder in the prompt. For ex. cd T|TAB| could complete with Treasure if Treasure is a file or folder in the current working path
|
|
HandleControlKeyActions ( |
Handles the control key actions.
|
|
HandleKeyNavigationLeft ( |
Handles the key navigation going left.
|
public AppendOutput ( string output, bool newLine = false, bool addPrompt = false, Color textColor = null, bool skipStyle = true ) : void | ||
output | string | The output. |
newLine | bool | if set to |
addPrompt | bool | |
textColor | Color | Color of the text. |
skipStyle | bool | if set to |
return | void |
public CommanderTextBox ( string prompt ) : System | ||
prompt | string | |
return | System |
public CommanderTextBox ( string prompt, IShellStatus shellStatus ) : System | ||
prompt | string | The prompt. |
shellStatus | IShellStatus | The shell status ref |
return | System |
protected GetCurrentLineStartPosition ( ) : int | ||
return | int |
public GetCurrentLineString ( int actualStartIndex ) : string | ||
actualStartIndex | int | Actual index of the start. |
return | string |
protected OnKeyDown ( |
||
e | A |
|
return | void |
public ReplaceCurrentLineWith ( string newText ) : void | ||
newText | string | |
return | void |