How to use SendCommand inTelnetTerminalControl

0
My code raise exception var telnetControl = new TelnetTerminalControl(); telnetControl.Connect("10.10.10.12", 23); telnetControl.SendCommand("admin"); <-- exception > ComponentPro.Net.Terminal.TerminalException: Cannot receive and > process data while in 'automatic' processing mode. Use > TerminalControl.SetDataProcessingMode method to disable automatic > processing first. But i cannot find 'SetDataProcessingMode'??? Please help me.
 
asked 1/2/2018 6:48:32 PM
add a comment

2 Answers

0
Thank you. It works. telnetControl = new TelnetTerminalControl(); telnetControl.Connect("10.10.10.12", 23); telnetControl.AutoProcessing = false; telnetControl.SendCommand("admin"); telnetControl.WaitFor(ScriptEvent.FromString(":")); telnetControl.SendCommand("admin"); telnetControl.WaitFor(ScriptEvent.FromString(">")); telnetControl.AutoProcessing = true;
 
answered 1/3/2018 6:42:55 PM
add a comment
0
Please use the [`AutoProcessing`][1] property. We will update the message accordingly in our next release. [1]: http://doc.componentpro.com/ComponentPro-Terminal/ComponentPro-Net-Terminal-TerminalControl-AutoProcessing
 
answered 1/3/2018 9:47:55 AM
add a comment

Your Answer

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