mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
bug #1508 configurable color output
This commit is contained in:
parent
c7ebe6b3e2
commit
9c0e4053c4
2 changed files with 7 additions and 4 deletions
|
@ -160,7 +160,8 @@ std::string Config::_defaults =
|
||||||
#ifdef LINUX
|
#ifdef LINUX
|
||||||
"color.header=color3 # Color of header messages\n"
|
"color.header=color3 # Color of header messages\n"
|
||||||
"color.footnote=color3 # Color of footnote messages\n"
|
"color.footnote=color3 # Color of footnote messages\n"
|
||||||
"color.error=color3 # Color of error messages\n"
|
"color.warning=color3 # Color of warning messages\n"
|
||||||
|
"color.error=color1 # Color of error messages\n"
|
||||||
"color.debug=color3 # Color of diagnostic output\n"
|
"color.debug=color3 # Color of diagnostic output\n"
|
||||||
"color.alternate=on color233 # Alternate color for line coloring\n"
|
"color.alternate=on color233 # Alternate color for line coloring\n"
|
||||||
"\n"
|
"\n"
|
||||||
|
@ -215,7 +216,8 @@ std::string Config::_defaults =
|
||||||
#else
|
#else
|
||||||
"color.header=yellow # Color of header messages\n"
|
"color.header=yellow # Color of header messages\n"
|
||||||
"color.footnote=yellow # Color of footnote messages\n"
|
"color.footnote=yellow # Color of footnote messages\n"
|
||||||
"color.error=yellow # Color of error messages\n"
|
"color.warning=yellow # Color of warning messages\n"
|
||||||
|
"color.error=red # Color of error messages\n"
|
||||||
"color.debug=yellow # Color of diagnostic output\n"
|
"color.debug=yellow # Color of diagnostic output\n"
|
||||||
"color.alternate= # Alternate color for line coloring\n"
|
"color.alternate= # Alternate color for line coloring\n"
|
||||||
"\n"
|
"\n"
|
||||||
|
|
|
@ -99,6 +99,7 @@ int CmdShow::execute (std::string& output)
|
||||||
" color.deleted"
|
" color.deleted"
|
||||||
" color.due"
|
" color.due"
|
||||||
" color.due.today"
|
" color.due.today"
|
||||||
|
" color.warning"
|
||||||
" color.error"
|
" color.error"
|
||||||
" color.footnote"
|
" color.footnote"
|
||||||
" color.header"
|
" color.header"
|
||||||
|
@ -257,8 +258,8 @@ int CmdShow::execute (std::string& output)
|
||||||
view.add (Column::factory ("string", STRING_CMD_SHOW_CONF_VAR));
|
view.add (Column::factory ("string", STRING_CMD_SHOW_CONF_VAR));
|
||||||
view.add (Column::factory ("string", STRING_CMD_SHOW_CONF_VALUE));
|
view.add (Column::factory ("string", STRING_CMD_SHOW_CONF_VALUE));
|
||||||
|
|
||||||
Color error ("bold white on red");
|
Color error (context.config.get ("color.error"));
|
||||||
Color warning ("black on yellow");
|
Color warning (context.config.get ("color.warning"));
|
||||||
|
|
||||||
bool issue_error = false;
|
bool issue_error = false;
|
||||||
bool issue_warning = false;
|
bool issue_warning = false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue