#include "misc.h"
#include "options.h"
#include "xmalloc.h"
+#include "color.h"
int curitem = -1;
static void
highlight_line(WINDOW *win, int line)
{
- wstandout(win);
+ wattrset(win, COLOR_PAIR(CP_LIST_HIGHLIGHT));
+ if(!opt_get_bool(BOOL_USE_COLORS)) {
+ wstandout(win);
+ }
/*
* this is a tricky one
struct index_elem *cur;
int x_pos = 1;
+ if(item % 2 == 0)
+ wattrset(list, COLOR_PAIR(CP_LIST_EVEN));
+ else
+ wattrset(list, COLOR_PAIR(CP_LIST_ODD));
scrollok(list, FALSE);
if(highlight)
highlight_line(list, line);
#if defined(A_BOLD) && defined(A_NORMAL)
attrset(A_BOLD);
#endif
+ attrset(COLOR_PAIR(CP_LIST_HEADER));
+ mvhline(2, 0, ' ', COLS);
for(e = index_elements; e; e = e->next)
if(e->type == INDEX_TEXT)
return curitem;
}
+int
+list_get_firstitem()
+{
+ return first_list_item;
+}
+
void
list_set_curitem(int i)
{