Back to product page
- Introduction
- License agreement
- Classes
- Enumerations
- Exceptions
- WeOnlyDo.Client.SSH
- Methods
- Properties
- AllocatePty
- Authentication
- Blocking
- Columns
- Command
- Compression
- DataOut
- DataReady
- Encryption
- EncryptionList
- ExitSignal
- ExitStatus
- FingerPrintType
- FIPS
- ForwardHost
- ForwardPort
- HMacList
- Hostname
- KeepAlives
- KeyExchangeList
- KeyFowarding
- Login
- Password
- Port
- PrivateKey
- Prompt
- Protocol
- ProxyHostname
- ProxyLogin
- ProxyPassword
- ProxyPort
- ProxyType
- RemoteIdentification
- Rows
- ShowStdErrorMessages
- State
- StripANSI
- Subsystem
- TerminalType
- Timeout
- Version
- Events
- How to get support?
StripANSI property
Automatically removes ANSI codes from received data.
Type
Boolean.Syntax
- C#
- VB.NET
Boolean StripANSI {get; set; };
Property StripANSI As Boolean
Remarks
Newer servers will internally use vt100 emulation by all means - thus sending you escape sequences for virtually anything, even for displaying rows when you list remote directories. This may be a bit of pain to remove since it's not what you expect to receive - plain data you needed is 'garbled' with ANSI sequences which you don't need.One of the solutions would be to select different TerminalType property value, for example 'tty' instead of 'vt100'. Yet, if 'tty' is used you may receive frequent errors from the server that it doesn't understand 'tty' emulation.
In such cases, you can set StripANSI property to True. When set, wodSSH.NET will just remove ANSI sequences from received data, thus leaving you with pure text you intended to receive in the first place.