Diagnostics
- Added mention of $TERM and the size of the terminal.
This commit is contained in:
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";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user