rendered paste bodyRCS file: /libui/elfsh/libui/color.c,v
retrieving revision 1.2
diff -c -r1.2 color.c
*** libui/color.c 29 Mar 2006 00:10:13 -0000 1.2
--- libui/color.c 1 Apr 2006 18:11:00 -0000
***************
*** 106,111 ****
--- 106,116 ----
//snprintf(text, COLOR_TOKEN_LEN - 1, sp, object);
+ #if defined(USE_UI)
+ init_pair(1, COLOR_RED, COLOR_BLACK);
+ attron(COLOR_PAIR(1));
+ #endif
+
if (strchr(sp, 's') == NULL)
snprintf(text, COLOR_TOKEN_LEN - 1, sp, *(long *) object);
else
RCS file: /libui/elfsh/libui/ui.c,v
retrieving revision 1.4
diff -c -r1.4 ui.c
*** libui/ui.c 29 Mar 2006 14:12:31 -0000 1.4
--- libui/ui.c 1 Apr 2006 18:11:00 -0000
***************
*** 32,37 ****
--- 32,39 ----
/* Init ncurses*/
initscr();
+ if(has_colors()==TRUE)
+ start_color();
cbreak();
noecho();
bluffer@server:~/cvs/elfsh>