removed 'nocolor' option. Added 'color' option that takes (auto|never|always) instead.

This commit is contained in:
Ahmet Emre Çepoğlu
2014-01-23 18:26:05 +02:00
parent 599d641034
commit a4c07c9b90
2 changed files with 30 additions and 7 deletions

View File

@ -86,6 +86,12 @@ typedef enum _MuConfigCmd MuConfigCmd;
((C) > MU_CONFIG_CMD_UNKNOWN && (C) < MU_CONFIG_CMD_NONE)
enum MuColorOpt {
MuColorOpt_auto,
MuColorOpt_never,
MuColorOpt_always
};
/* struct with all configuration options for mu; it will be filled
* from the config file, and/or command line arguments */
@ -102,8 +108,8 @@ struct _MuConfig {
gboolean version; /* request mu version */
gboolean log_stderr; /* log to stderr (not logfile) */
gchar** params; /* parameters (for querying) */
gboolean nocolor; /* don't use use ansi-colors
* in some output */
enum MuColorOpt color; /* colorize output (enum)*/
gboolean nocolor; /* colorize output (boolean)*/
gboolean verbose; /* verbose output */
/* options for indexing */