Re: SOLVED (long) Re: colorization difference between 1.4.x and 1.5.x
On Thu, 3 Jun 2004, Michael W. Oliver wrote:
> On 2004-06-04T00:40:34+0200, Alain Bench wrote:
> > On Thursday, June 3, 2004 at 1:12:38 PM -0400, Michael W. Oliver wrote:
> >
> > > On 2004-06-03T10:26:17+0200, Alain Bench wrote:
> > > > patch-1.5-me.color_eol.1
> > > where I can get it?
> >
> > On mutt-dev archives id <20021006162429.GB27632@xxxxxxxxxxxxxxxxx>.
> > You'll have to reverse it.
>
> Ok, you were right on the money with this tip. At first, I thought that
> it wasn't right, but then I looked closer at the patch. I had started
> using (and liking) slang support in Mutt, but the patch had no effect
> when Mutt was compiled with slang support as follows:
mutt contains different code for using ncurses and slang.
If slang had provided a (more than so-called) curses-compatible
interface, it would be simple for applications to use either.
Since it does not, it is unsurprising that applications use
different features (or make use of them in different ways).
(There's an slcurses.h header, but for making applications
curses-compatible it is worthless - doesn't do windows).
> So, using the above port compilation flags, and with the patch applied,
> the colorization still extended to the right edge of the terminal. Gah!
>
> Ok, so I commented out "WITH_MUTT_SLANG=YES" from /etc/make.conf, and
> recompiled the port (with the extra patch again), and now the pager
> colorization works just like it did in 1.4.x!! Whoo-hoo!
> If you don't mind, I would like to ask two more questions of you. What
> are the good and bad points about ncurses vs. slang? Is one better than
> the other?
no (not for this application).
slang is lower-level than ncurses - about halfway between termcap and
curses. Since it doesn't provide overlapping windows (must be simulated
in the application), it's capabilities are less than curses. mutt
doesn't use overlapping windows (no popups). ncurses does a lot of other
things that slang doesn't, but in the area of colors their abilities are
fairly close.
--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net