def prepare_default_colors focussed, selected
        @color_pair = get_color $datacolor
        @attr = @row_attr || Ncurses::A_NORMAL


        ## determine bg and fg and attr
        if selected
          #@attr = Ncurses::A_BOLD if selected
          ## 2010-09-18 18:32 making selected row reverse
          @attr |= Ncurses::A_REVERSE

          # 2010-09-18 18:33 maybe not required, just confuses the whole thing and uglifies it
          #@color_pair =get_color $selectedcolor, @parent.selected_color, @parent.selected_bgcolor unless @parent.nil?
        end
        case focussed
        when :SOFT_FOCUS
          @attr |= Ncurses::A_BOLD
        when true
          # earlier focussed row showed up in reverse, which was confusing since it looked selected
          # now focussed row has cursor on side, and can be bold. that's enough.
          @attr |= Ncurses::A_BOLD
          #@attr |= Ncurses::A_REVERSE
        when false
        end
    end
def prepare_default_colors focussed, selected
        @color_pair = get_color $datacolor
        @attr = @row_attr || Ncurses::A_NORMAL


        ## determine bg and fg and attr
        if selected
          #@attr = Ncurses::A_BOLD if selected
          ## 2010-09-18 18:32 making selected row reverse
          @attr |= Ncurses::A_REVERSE

          # 2010-09-18 18:33 maybe not required, just confuses the whole thing and uglifies it
          #@color_pair =get_color $selectedcolor, @parent.selected_color, @parent.selected_bgcolor unless @parent.nil?
        end
        case focussed
        when :SOFT_FOCUS
          @attr |= Ncurses::A_BOLD
        when true
          # earlier focussed row showed up in reverse, which was confusing since it looked selected
          # now focussed row has cursor on side, and can be bold. that's enough.
          @attr |= Ncurses::A_BOLD
          #@attr |= Ncurses::A_REVERSE
        when false
        end
    end
sets @color_pair and @attr