From: Steve Kirkendall (stevek@m2xenix.psg.com)
Date: 10/05/92


From: stevek@m2xenix.psg.com (Steve Kirkendall)
Subject: Re: Termcap question
Date: Mon, 5 Oct 1992 19:52:51 GMT

davison@borland.com (Wayne Davison) wrote:
>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.

I consider it to be a bug, myself. It'll be fixed in the next version.
If you don't want to wait for the next version, you can make the change
to the current version yourself. All you need to do is modify the the
curses.c file, and change...

        pair(&IM, &EI, "im", ei");
        mayhave(&IC, "ic");

... to...

        mayhave(&IC, "ic");
        if (!IC || !*IC)
                pair(&IM, &EI, "im", ei");

This way, if your termcap entry has a non-empty :ic=: string defined then
elvis won't even look for the :im=:ei=: strings.