mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Docs: Removed references to $TERM, which is irrelevant anyway
This commit is contained in:
parent
0d3e92ed5d
commit
8cb1d8743f
2 changed files with 6 additions and 22 deletions
|
@ -4,22 +4,9 @@
|
||||||
task-color \- A color tutorial for the Taskwarrior command line todo manager.
|
task-color \- A color tutorial for the Taskwarrior command line todo manager.
|
||||||
|
|
||||||
.SH SETUP
|
.SH SETUP
|
||||||
The first thing you need is a terminal program that supports color. All
|
The first thing you need is make sure you tell Taskwarrior that you want to use
|
||||||
terminal programs support color, but only a few support lots of colors. First
|
color. This is the default for Taskwarrior, so the following step may be
|
||||||
tell your terminal program to use color by specifying the TERM environment
|
unnecessary.
|
||||||
variable like this:
|
|
||||||
|
|
||||||
TERM=xterm-color
|
|
||||||
|
|
||||||
In this example, xterm-color is used - a common value, and one that doesn't
|
|
||||||
require that you use xterm. This works for most setups. This setting belongs
|
|
||||||
in your shell profile (~/.bash_profile, ~/.bashrc, ~/.cshrc etc, depending on
|
|
||||||
which shell you use). If this is a new setting, you will need to either run
|
|
||||||
that profile script, or close and reopen the terminal window (which does the
|
|
||||||
same thing).
|
|
||||||
|
|
||||||
Now tell Taskwarrior that you want to use color. This is the default for
|
|
||||||
Taskwarrior, so the following step may be unnecessary.
|
|
||||||
|
|
||||||
$ task config color on
|
$ task config color on
|
||||||
|
|
||||||
|
|
|
@ -398,15 +398,12 @@ int CmdDiagnostics::execute (std::string& output)
|
||||||
out << bold.colorize (STRING_CMD_DIAG_TESTS)
|
out << bold.colorize (STRING_CMD_DIAG_TESTS)
|
||||||
<< '\n';
|
<< '\n';
|
||||||
|
|
||||||
// Determine terminal details.
|
// Report terminal dimensions.
|
||||||
const char* term = getenv ("TERM");
|
out << " Terminal: "
|
||||||
out << " $TERM: "
|
|
||||||
<< (term ? term : STRING_CMD_DIAG_NONE)
|
|
||||||
<< " ("
|
|
||||||
<< context.getWidth ()
|
<< context.getWidth ()
|
||||||
<< 'x'
|
<< 'x'
|
||||||
<< context.getHeight ()
|
<< context.getHeight ()
|
||||||
<< ")\n";
|
<< '\n';
|
||||||
|
|
||||||
// Scan tasks for duplicate UUIDs.
|
// Scan tasks for duplicate UUIDs.
|
||||||
auto all = context.tdb2.all_tasks ();
|
auto all = context.tdb2.all_tasks ();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue