Signed-off-by: Ben Boeckel <[email protected]>
---
 color.c                | 1 +
 contrib/colors.default | 1 +
 contrib/colors.linux   | 1 +
 curs_lib.c             | 6 +++---
 doc/muttrc.man.head    | 2 +-
 mutt_curses.h          | 1 +
 6 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/color.c b/color.c
index ef97ca9..64a46dc 100644
--- a/color.c
+++ b/color.c
@@ -93,6 +93,7 @@ static const struct mapping_t Fields[] =
   { "bold",            MT_COLOR_BOLD },
   { "underline",       MT_COLOR_UNDERLINE },
   { "index",           MT_COLOR_INDEX },
+  { "prompt",          MT_COLOR_PROMPT },
   { NULL,              0 }
 };
 
diff --git a/contrib/colors.default b/contrib/colors.default
index 84298e9..dfed8d5 100644
--- a/contrib/colors.default
+++ b/contrib/colors.default
@@ -6,6 +6,7 @@ color hdrdefault blue white
 color quoted blue white
 color signature red white
 color attachment red white
+color prompt brightmagenta white
 color message brightred white
 color error brightred white
 color indicator brightyellow red
diff --git a/contrib/colors.linux b/contrib/colors.linux
index 1366a9c..d9fa261 100644
--- a/contrib/colors.linux
+++ b/contrib/colors.linux
@@ -6,6 +6,7 @@ color hdrdefault blue black
 color quoted blue black
 color signature blue black
 color attachment red black
+color prompt brightmagenta black
 color message brightred black
 color error brightred black
 color indicator black red
diff --git a/curs_lib.c b/curs_lib.c
index 3d8164c..2369612 100644
--- a/curs_lib.c
+++ b/curs_lib.c
@@ -139,7 +139,7 @@ int _mutt_get_field (const char *field, char *buf, size_t 
buflen, int complete,
   do
   {
     CLEARLINE (LINES-1);
-    SETCOLOR (MT_COLOR_MESSAGE);
+    SETCOLOR (MT_COLOR_PROMPT);
     addstr ((char *)field); /* cast to get around bad prototypes */
     NORMAL_COLOR;
     mutt_refresh ();
@@ -227,7 +227,7 @@ int mutt_yesorno (const char *msg, int def)
   answer_string_len = mutt_strwidth (answer_string);
   /* maxlen here is sort of arbitrary, so pick a reasonable upper bound */
   msglen = mutt_wstr_trunc (msg, 4*COLS, COLS - answer_string_len, NULL);
-  SETCOLOR (MT_COLOR_MESSAGE);
+  SETCOLOR (MT_COLOR_PROMPT);
   addnstr (msg, msglen);
   addstr (answer_string);
   NORMAL_COLOR;
@@ -651,7 +651,7 @@ int mutt_multi_choice (char *prompt, char *letters)
   int choice;
   char *p;
 
-  SETCOLOR (MT_COLOR_MESSAGE);
+  SETCOLOR (MT_COLOR_PROMPT);
   mvaddstr (LINES - 1, 0, prompt);
   NORMAL_COLOR;
   clrtoeol ();
diff --git a/doc/muttrc.man.head b/doc/muttrc.man.head
index 30b96a2..30d113f 100644
--- a/doc/muttrc.man.head
+++ b/doc/muttrc.man.head
@@ -233,7 +233,7 @@ objects.  Valid objects are:
 .BR hdrdefault ", " index ", " indicator ", " markers ", "
 .BR message ", " normal ", " quoted ", " quoted\fIN\fP ", "
 .BR search ", " signature ", " status ", " tilde ", " tree ", "
-.BR underline .
+.BR underline ", " prompt .
 The
 .BR body " and " header
 objects allow you to restrict the colorization to a regular
diff --git a/mutt_curses.h b/mutt_curses.h
index f8d6f88..f8bc47c 100644
--- a/mutt_curses.h
+++ b/mutt_curses.h
@@ -120,6 +120,7 @@ enum
   MT_COLOR_BOLD,
   MT_COLOR_UNDERLINE,
   MT_COLOR_INDEX,
+  MT_COLOR_PROMPT,
   MT_COLOR_MAX
 };
 
-- 
1.9.0

Reply via email to