User Tools

Site Tools


stripansi

# $EPIC: stripansi.txt,v 1.2 2006/08/20 16:57:01 sthalik Exp $

Synopsis:

$stripansi(<text>)

Technical:

This function returns <text>, except that all ascii characters from 14 to 31 (inclusive) except for 15 and 22 (^O and ^V) have been converted into their printable ascii equivalents. The net effect is that all ESCape sequences in <text> have been mangled safely.

Practical:

This function is not useful and is maintained for backwards compatibility. You should use $stripansicodes() instead.

Returns:

The input string with control characters mangled into submission.

Examples:

$stripansi($*)             make sure default input has no ESCs
stripansi.txt · Last modified: 2006/08/29 16:08 (external edit)