From: Mika Pekka Liljeberg (liljeber@kruuna.Helsinki.FI)
Date: 07/03/92


From: liljeber@kruuna.Helsinki.FI (Mika Pekka Liljeberg)
Subject: Re: Minicom under Linux
Date: 3 Jul 1992 16:16:17 GMT

In article <920701262@myamig2.mixcom.com> root@myamig2.mixcom.com (Steve Palm) wrote:
> I was toying with Minicom under linux. Nice little term package. I decided
> to try the color option (-c on) under 0.96b, pl2. Well... It didn't work.
> I got a lot of extra "S" characters on the screen by the attribute codes.
>
> I played with window.c, and found the following #ifdef:
>
> #ifdef linux
> if (usecolor) outstr("\033PS");
> #endif
>
> I removed this entirely, and the problem went away.
>
> I assume this is due to the new and improved 0.96b kernel. :) Just thought
> I'd pass this on to other interested parties, even if it's not really a
> patch format file.
>
> Peace.

Yup, the setterm escape code sequence was changed in Linux 0.96b.
The line above does the same as "setterm -store" and should read:

#ifdef linux
  if (usecolor) outstr("\033[8]");
#endif

It might still be better to remove the whole thing, though.

For those who are interested, the valid setterm sequences are:

Set underline color: ESC [ 1 ; <color> ]
Set half-bright color: ESC [ 2 ; <color> ]
Store attributes as defaults: ESC [ 8 ]
Set screen blanker timing: ESC [ 9 ; <minutes> ]

<color> is a number from 0 to 15. <minutes> can range from 0 to 60.
0 turns screen blanking off. Anything greater than 60 is truncated
to 60 minutes.

The change was necessary, because some of the old codes conflicted
with valid vt100 sequences.

        Mika