Back to product page

StripANSI property


Automatically removes ANSI codes from received data.

Type

Boolean

Syntax

  • Basic
object.StripANSI [= value]
The StripANSI(object) syntax has these parts:
objectAn expression evaluating to an object of type wodTelnetDLX

Remarks

Newer servers (such as Redhat 6.1) 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, wodTelnetDLX will just remove ANSI sequences from received data, thus leaving you with pure text you intended to receive in the first place.

Platforms

Windows