plz help any solution to this i need to capture only output in virtual terminal for command for router

0
Hi I got virtual terminal to work but output has command along with output not only output in `DataReceived` property for router plz help any solution to this i need to capture only output
edited 12/14/2017 11:43:33 PM
asked 12/14/2017 4:08:29 PM
add a comment

1 Answers

0
If the component can detect the prompt automatically, please use the `DetectPrompt` of that `VirtualTerminal` class after sending a command. It detects the prompt which the server currently uses and sets the `Prompt` property accordingly. virtualTerminal.DetectPrompt() If that does not work as expected, you can set the `Prompt` to that you would expect. ## Detect prompt by regular string: For example, if the prompt is a simple string '>', use the following code: virtualTerminal.Prompt = "> "; ## Masks If it's like "userName@host:", use virtualTerminal.Prompt = "mask:userName@host:*"; ## Regular expression: You can also use a regular expression virtualTerminal.Prompt = "regex:.*@.*[:].*$";
edited 12/14/2017 11:59:51 PM
answered 12/14/2017 11:55:10 PM
add a comment

Your Answer

Not the answer you're looking for? Browse other questions tagged ultimate terminal emulation or ask your own question.