# File raggle, line 3638
      def NcursesInterface::select_cat(str)
        $old_cat = $category || 'all'
        $category = str
      
        unless $old_cat == $category  # rebuild feeds in new category
          # rebuild feed window
          NcursesInterface::populate_feed_win

          # select feed window and select top feed
          w_id = NcursesInterface::get_win_id('feed')
          NcursesInterface::set_active_win(w_id)
          $wins[w_id].activate 0 
        else  # just go back to old window if category didn't change
          NcursesInterface::goto_old_win
        end
        
        # delete category window
        $wins[NcursesInterface::get_win_id('cat')].close
      end