From: Wayne Davison (davison@borland.com)
Date: 10/02/92


From: davison@borland.com (Wayne Davison)
Subject: Re: Termcap question
Date: 2 Oct 1992 19:46:55 GMT

satishc@microsoft.com (Satish Chittamuru) wrote:
> Basically, Elvis seems to think that one needs to wrap each IC (insert
> character terminal escape) output with a preceding IM (insert mode) and a
> succeeding EI (end insert mode).

This is the correct behavior. There is a problem with your termcap, NOT
with Elvis. The termcap manpage specifies that the only time you define
both an insert mode and the insert character sequences if your terminal
needs the insert character sequence output from within the insert mode
(these are rare terminals, but they do exist). For terminals such as a
vt100 that support both a "normal" insert mode and an insert character
sequence you must choose one or the other to put in the termcap. It is
usually preferable to specify the insert mode. Note that it IS legal to
specify the multi-character insert sequence (IC=) in a termcap that has
insert mode or insert character defined.

-- 
Wayne Davison
davison@borland.com