From 1c29c2c87d2e237b7ea37d56d15978ddd5c86bb4 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Thu, 16 Dec 2010 09:29:46 -0500 Subject: [PATCH] Diagnostics - Added mention of $TERM and the size of the terminal. --- src/diag.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) 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"; }