diff --git a/src/diag.cpp b/src/diag.cpp index 37b8f50fd..031046574 100644 --- a/src/diag.cpp +++ b/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"; }