mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-30 22:43:24 +02:00
Documentation Update
- Tweaked the output of the "color" command.
This commit is contained in:
parent
0b187f3ff8
commit
157b32e93b
1 changed files with 15 additions and 14 deletions
|
@ -500,11 +500,12 @@ int handleVersion (std::string &outs)
|
||||||
std::string recognized =
|
std::string recognized =
|
||||||
" blanklines bulk color color.active color.due color.overdue color.pri.H "
|
" blanklines bulk color color.active color.due color.overdue color.pri.H "
|
||||||
"color.pri.L color.pri.M color.pri.none color.recurring color.tagged "
|
"color.pri.L color.pri.M color.pri.none color.recurring color.tagged "
|
||||||
"color.footnote color.header color.debug confirmation curses data.location "
|
"color.footnote color.header color.debug color.alternate confirmation "
|
||||||
"dateformat debug default.command default.priority default.project defaultwidth "
|
"curses data.location dateformat debug default.command default.priority "
|
||||||
"due locale displayweeknumber echo.command locking monthsperline nag next project "
|
"default.project defaultwidth due locale displayweeknumber echo.command "
|
||||||
"shadow.command shadow.file shadow.notify weekstart editor import.synonym.id "
|
"locking monthsperline nag next project shadow.command shadow.file "
|
||||||
"import.synonym.uuid longversion complete.all.projects complete.all.tags "
|
"shadow.notify weekstart editor import.synonym.id import.synonym.uuid "
|
||||||
|
"longversion complete.all.projects complete.all.tags "
|
||||||
#ifdef FEATURE_SHELL
|
#ifdef FEATURE_SHELL
|
||||||
"shell.prompt "
|
"shell.prompt "
|
||||||
#endif
|
#endif
|
||||||
|
@ -1222,13 +1223,13 @@ int handleColor (std::string &outs)
|
||||||
Color c0 ("white on black");
|
Color c0 ("white on black");
|
||||||
Color c1 ("white on red");
|
Color c1 ("white on red");
|
||||||
Color c2 ("white on blue");
|
Color c2 ("white on blue");
|
||||||
Color c3 ("white on green");
|
Color c3 ("black on green");
|
||||||
Color c4 ("white on magenta");
|
Color c4 ("black on magenta");
|
||||||
Color c5 ("black on cyan");
|
Color c5 ("black on cyan");
|
||||||
Color c6 ("black on yellow");
|
Color c6 ("black on yellow");
|
||||||
Color c7 ("black on white");
|
Color c7 ("black on white");
|
||||||
out << std::endl
|
out << std::endl
|
||||||
<< "Basic color:"
|
<< "Basic colors"
|
||||||
<< std::endl
|
<< std::endl
|
||||||
<< " " << c0.colorize (" black ")
|
<< " " << c0.colorize (" black ")
|
||||||
<< " " << c1.colorize (" red ")
|
<< " " << c1.colorize (" red ")
|
||||||
|
@ -1244,9 +1245,9 @@ int handleColor (std::string &outs)
|
||||||
Color text ("red on black");
|
Color text ("red on black");
|
||||||
Color bold ("bold red on black");
|
Color bold ("bold red on black");
|
||||||
Color underline ("underline on blue");
|
Color underline ("underline on blue");
|
||||||
Color unbright ("white on green");
|
Color unbright ("black on green");
|
||||||
Color bright ("white on bright green");
|
Color bright ("black on bright green");
|
||||||
out << "Effects:"
|
out << "Effects"
|
||||||
<< std::endl
|
<< std::endl
|
||||||
<< " " << text.colorize (" text ")
|
<< " " << text.colorize (" text ")
|
||||||
<< " " << bold.colorize (" bold text ")
|
<< " " << bold.colorize (" bold text ")
|
||||||
|
@ -1257,7 +1258,7 @@ int handleColor (std::string &outs)
|
||||||
<< std::endl;
|
<< std::endl;
|
||||||
|
|
||||||
// 16 system colors.
|
// 16 system colors.
|
||||||
out << "color0 - color15:" << std::endl;
|
out << "color0 - color15" << std::endl;
|
||||||
for (int r = 0; r < 2; ++r)
|
for (int r = 0; r < 2; ++r)
|
||||||
{
|
{
|
||||||
out << " ";
|
out << " ";
|
||||||
|
@ -1275,7 +1276,7 @@ int handleColor (std::string &outs)
|
||||||
out << std::endl;
|
out << std::endl;
|
||||||
|
|
||||||
// Color cube.
|
// Color cube.
|
||||||
out << "Color cube rgb000 - rgb555 (also color16 - color231):" << std::endl;
|
out << "Color cube rgb000 - rgb555 (also color16 - color231)" << std::endl;
|
||||||
for (int g = 0; g < 6; ++g)
|
for (int g = 0; g < 6; ++g)
|
||||||
{
|
{
|
||||||
out << " ";
|
out << " ";
|
||||||
|
@ -1298,7 +1299,7 @@ int handleColor (std::string &outs)
|
||||||
out << std::endl;
|
out << std::endl;
|
||||||
|
|
||||||
// Grey ramp.
|
// Grey ramp.
|
||||||
out << "Gray ramp gray0 - gray23 (also color232 - color255):" << std::endl << " ";
|
out << "Gray ramp gray0 - gray23 (also color232 - color255)" << std::endl << " ";
|
||||||
for (int g = 0; g < 24; ++g)
|
for (int g = 0; g < 24; ++g)
|
||||||
{
|
{
|
||||||
std::stringstream s;
|
std::stringstream s;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue