Is it please possible to provide either a configure compile time switch or a runtime switch to disable colors in the pinentry-curses please ?
If it would be done compile time, USE_COLORS could be defined as (0) in pinentry-curses.c
But is there a configure switch for this ? (such as : configure --disable-colors)
--- a/pinentry/pinentry-curses.c
+++ b/pinentry/pinentry-curses.c
@@ -63,7 +63,8 @@
#define STRING_NOTOK "<No>"
#define STRING_CANCEL "<Cancel>"
-#define USE_COLORS (has_colors () && COLOR_PAIRS >= 2)
+/* #define USE_COLORS (has_colors () && COLOR_PAIRS >= 2) */
+#define USE_COLORS (0)
I have tested the above modification to disable colors and this gives good results for me using classical curses.
However the same configure option could also be useful for ncurses users who do not wish to use colors.
Perhaps the option could also be set at runtime or in a gpg-agent.conf file. I am not certain that the best thing is to disable it at compile time.