- Subject: Re: setf and setb are in GBR (1=blue, 4=red)
- From: "John E. Davis" <davis>
- Date: Thu, 28 Nov 2002 00:47:58 -0500
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]