Description

Mangle types are used by:

Options

All characters are grouped into one of 9 “types”:

Type number Description ASCII characters
0 Normal chars 32-127, 160-255
1 High bit control chars 128-159
2 Escape char ^[
3 Color char ^C
4 Highlight toggle ^B ^E ^F ^O ^V ^_
5 Unsafe char ^M (\r)
6 Control char ^@ ^A ^D ^H ^K ^L ^N ^P ^Q ^R ^T ^U ^W ^X ^Y ^Z ^\ ^] ^^
7 Beep ^G
8 Tab ^I
9 Non-destructive Space ^S

There are the 12 following mangle types:

MANGLE_ESCAPES NORMALIZE STRIP_COLOR STRIP_REVERSE
STRIP_UNDERLINE STRIP_BOLD STRIP_BLINK STRIP_ND_SPACE
STRIP_ALT_CHAR STRIP_ALL_OFF STRIP_UNPRINTABLE STRIP_OTHER

The mangle types transform the characters, according to this table:

A Character or sequence converted into an attribute
M Character mangled (ie, ^A into ^VA^V)
S Character stripped, sequence (if any) NOT stripped
X Character stripped, sequence (if any) also stripped
T Transformed into other (safe) chars
- No transformation

Mangle type 0 1 2 3 4 5 6 7 8 9
(default) - - - - A - - T T T
NORMALIZE - - A A - X M - - -
MANGLE_ESCAPES - - S - - - - - - -
STRIP_COLOR - - - X - - - - - -
STRIP_* - - - - X - - - - -
STRIP_UNPRINTABLE - X S S X X X X - -
STRIP_OTHER X - - - - - - - X X
(/SET ALLOW_C1) - X - - - - - - - -

There are only *three* ambiguous cases:

  • Type 2:
    MANGLE_ESCAPES has first priority, then NORMALIZE, and finally STRIP_UNPRINTABLE
  • Type 3:
    STRIP_UNPRINTABLE has first priority, then NORMALIZE, and STRIP_COLOR. You need to use both NORMALIZE and STRIP_COLOR to remove color changes in escape sequences
  • Type 6:
    STRIP_UNPRINTABLE has first priority over NORMALIZE.
 
mangle_types.txt · Last modified: 2007/02/24 13:20
 

All documentation is available under the same terms as EPIC itself.