slang-users mailing list

[2002 Date Index] [2002 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: setf and setb are in GBR (1=blue, 4=red)


Pavel Roskin <proski@xxxxxxx> wrote:
>The setaf/setab and setf/setb capabilities take a single numeric argument
>each...
>                    black     COLOR_BLACK       0     0, 0, 0
>                    red       COLOR_RED         1     max,0,0
>                    ...
>                    blue      COLOR_BLUE        4     0,0,max
>
>But that's not what ncurses does!  It applies toggled_colors() function to
>the color if it was defined by setf or setb, as opposed to setaf/setab.  
>That function swaps bytes so that blue becomes 1 and red becomes 4 before
>the color is passed as arguments to the format interpreter.
>
>This patch makes the same for S-Lang 1.4.6.

Thanks for the patch.  But what is correct: the man page or the
ncurses implementation?

Thanks,
--John


[2002 date index] [2002 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]