mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Diagnostics
- Added mention of $TERM and the size of the terminal.
This commit is contained in:
parent
ca4b15bc0b
commit
1c29c2c87d
1 changed files with 10 additions and 0 deletions
10
src/diag.cpp
10
src/diag.cpp
|
@ -259,6 +259,16 @@ void handleDiagnostics (std::string& outs)
|
|||
|
||||
if (uuids.size () >= 1000)
|
||||
std::cout << "1000 unique UUIDs generated.\n";
|
||||
|
||||
// Determine terminal details.
|
||||
const char* term = getenv ("TERM");
|
||||
std::cout << " $TERM: "
|
||||
<< (term ? term : "-none=")
|
||||
<< " ("
|
||||
<< context.getWidth ()
|
||||
<< "x"
|
||||
<< context.getHeight ()
|
||||
<< ")\n";
|
||||
}
|
||||
std::cout << "\n";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue