Property | Type | Description | |
---|---|---|---|
DoSyntaxHighlighting | void |
Method | Description | |
---|---|---|
IsWriteable ( |
Determines if the given key is writable text
|
|
ReadCommandLine ( ConsoleString initialBuffer = null ) : string[] |
Reads a line of text from the console and converts it into a string array that has accounted for escape sequences and quoted string literals.
|
|
ReadLine ( ConsoleString initialBuffer = null ) : ConsoleString |
Reads a line of text from the console. Any interactions you've configured before calling this method will be in effect.
|
|
RegisterHandler ( IKeyHandler handler ) : void |
Lets you register a custom key handler. You are responsible for ensuring that each key is only handled by one handler. This method will throw if you try to add a duplicate key handler.
|
|
RichTextCommandLineReader ( ) : System |
Creates a new reader.
|
|
UnregisterHandler ( ConsoleKey key ) : bool |
Unregisters the handler for the given key
|
|
UnregisterHandler ( IKeyHandler handler ) : void |
Unregisters the given key handler from the reader. You should only do this if you're planning on overriding the default handlers, and you should do so with caution.
|
Method | Description | |
---|---|---|
DoSyntaxHighlighting ( |
public static IsWriteable ( |
||
info | the key info | |
return | bool |
public ReadCommandLine ( ConsoleString initialBuffer = null ) : string[] | ||
initialBuffer | ConsoleString | Optionally seed the prompt with an initial value that the end user can modify |
return | string[] |
public ReadLine ( ConsoleString initialBuffer = null ) : ConsoleString | ||
initialBuffer | ConsoleString | Optionally seed the prompt with an initial value that the end user can modify |
return | ConsoleString |
public RegisterHandler ( IKeyHandler handler ) : void | ||
handler | IKeyHandler | The handler to register |
return | void |
public RichTextCommandLineReader ( ) : System | ||
return | System |
public UnregisterHandler ( ConsoleKey key ) : bool | ||
key | ConsoleKey | the key to unregister |
return | bool |
public UnregisterHandler ( IKeyHandler handler ) : void | ||
handler | IKeyHandler | The handler to unregister |
return | void |