Diagnostics

- Added mention of $TERM and the size of the terminal.
This commit is contained in:
Paul Beckingham 2010-12-16 09:29:46 -05:00
parent ca4b15bc0b
commit 1c29c2c87d

View file

@ -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";
}