login

<     >

2014-11-09 15:51:56 (UTC-02:00)

Marcel Rodrigues <marcelgmr@gmail.com>

More color configuration.

diff --git a/config.h b/config.h
index 250f2fe..dbbe39f 100644
--- a/config.h
+++ b/config.h
@@ -25,5 +25,7 @@
 #define RVC_FILE        DEFAULT
 #define RVC_DIR         DEFAULT
 #define RVC_HIDDEN      YELLOW
+#define RVC_PROMPT      DEFAULT
+#define RVC_TABNUM      DEFAULT
 
 #define RV_JUMP         10

diff --git a/rover.c b/rover.c
index 309731f..80f2e6a 100644
--- a/rover.c
+++ b/rover.c
@@ -219,7 +219,9 @@ cd(int reset)
     color_set(DEFAULT, NULL);
     move(0, COLS-2);
     attr_on(A_BOLD, NULL);
+    color_set(RVC_TABNUM, NULL);
     echochar(rover.tab + '0');
+    color_set(DEFAULT, NULL);
     attr_off(A_BOLD, NULL);
     if (rover.nfiles)
         free_rows(&rover.rows, rover.nfiles);
@@ -435,7 +437,9 @@ main()
             oldsel = FSEL;
             oldscroll = SCROLL;
             *SEARCH = '\0';
+            color_set(RVC_PROMPT, NULL);
             mvaddstr(LINES - 1, 0, "search: ");
+            color_set(DEFAULT, NULL);
             while (igetstr(SEARCH, SEARCHSZ)) {
                 int length, sel;
                 color_t color;