Remove-ANSI-escape-sequences-from-incoming-data - WeOnlyDo Software example code



All

wodCrypt (12)
wodSSH (10)
wodSFTP (23)
wodSSHServer (1)
wodSSHTunnel (11)
wodSSHpackage
wodSFTPdll

wodSSH.NET (10)
wodSFTP.NET (24)
wodFtpDLX.NET (22)
wodWebServer.NET (10)

wodAppUpdate (13)
wodHttpDLX (8)
wodFtpDLX (22)
wodTelnetDLX
wodFTPServer (3)
wodWebServer (10)
wodVPN
wodXMPP (13)
All ** [Visual Basic] ** [C#] ** [VB.NET] **

Remove ANSI escape sequences from incoming data
VB code
Dim wodSSH1 As wodSSHCom
Set wodSSH1 = New wodSSHCom

'When StripANSI Property is set to True ANSI codes will be removed automatically from received data.
wodSSH1.StripANSI = True

'Set server login, password and hostname.
wodSSH1.HostName = "your_hostname"
wodSSH1.Login = "your_login"
wodSSH1.Password = "your_password"
'Connect to server.
wodSSH1.Connect
VB.NET code
Dim wodSSH1 As WeOnlyDo.Client.SSH
wodSSH1 = New WeOnlyDo.Client.SSH

'When StripANSI Property is set to True ANSI codes will be removed automatically from received data.
wodSSH1.StripANSI = True

'Set server login, password and hostname.
wodSSH1.Hostname = "your_hostname"
wodSSH1.Login = "your_login"
wodSSH1.Password = "your_password"
'Connect to server.
wodSSH1.Connect()
C# code
WeOnlyDo.Client.SSH  wodSSH1;
wodSSH1 = new WeOnlyDo.Client.SSH();

//When StripANSI Property is set to True ANSI codes will be removed automatically from received data.
wodSSH1.StripANSI = true;

//Set server login, password and hostname.
wodSSH1.Hostname = "your_hostname";
wodSSH1.Login = "your_login";
wodSSH1.Password = "your_password";
//Connect to server.
wodSSH1.Connect();