Consultor Eletrônico



Kbase 15262: Protermcap - Things to avoid! (V7)
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/05/1998
Protermcap - Things to avoid! (V7)

Protermcap - Things to avoid!

In the protermcap file the following things should be avoided:

1. Backslashes (\) in comment lines where the next line is
not a comment line. The backslash means line continuation,
and therefore, in this case comments out the next line.

Example:

# V1|vt100|vt100-80|vt100_series|DEC VT-100 running in ansi mode:S5|s5|DEC VT-100 running in ansi mode: :is=\E>\E[?3l\E[?4l\E[m\E[?7h\E[?8h\E(B\E)0: :nd=2\E[C: :do=\E[B:

Note the first line is a comment (denoted by #), the line ends
with a \ which says continue the next line as if it were this
line. This results in commenting out the S5 section, or not
being able to find the section.

2. Avoid having blank lines in the middle of a protermcap entry.
If a blank line is encountered, the rest of that entry is
ignored.

# V1|vt100|vt100-80|vt100_series|DEC VT-100 running in ansi mode:S5|s5|DEC VT-100 running in ansi mode: :is=\E>\E[?3l\E[?4l\E[m\E[?7h\E[?8h\E(B\E)0: :nd=2\E[C: :do=\E[B: :cl=50\E[;H\E[2J: :cm=5\E[%i%d;%dH: <--- avoid these blank lines
:so=2\E[7m: :se=2\E[m:
3. Do NOT put comments (#) in the middle of the entry, otherwise
like the blank line, the rest of the entry will be ignored.

# V1|vt100|vt100-80|vt100_series|DEC VT-100 running in ansi mode:S5|s5|DEC VT-100 running in ansi mode: :is=\E>\E[?3l\E[?4l\E[m\E[?7h\E[?8h\E(B\E)0: :nd=2\E[C:# :do=\E[B:\ <--- avoid commenting out params in
:cl=50\E[;H\E[2J:\ the middle of an entry
:cm=5\E[%i%d;%dH: :so=2\E[7m: :se=2\E[m:
4. If you do want to comment out a parameter in an entry, the
parameter must be preceded by a period (.).

# V1|vt100|vt100-80|vt100_series|DEC VT-100 running in ansi mode:S5|s5|DEC VT-100 running in ansi mode: :is=\E>\E[?3l\E[?4l\E[m\E[?7h\E[?8h\E(B\E)0: :nd=2\E[C: :do=\E[B: :cl=50\E[;H\E[2J: :.cm=5\E[%i%d;%dH:\ <--- the . (period) before the cm
:so=2\E[7m:\ comments out this parameter, and
:se=2\E[m:\ will allow the rest of the entry
to be read

Progress Software Technical Support Note # 15262