Changeset 6044 for code/branches/console/src/libraries/core/IOConsole.cc
- Timestamp:
- Nov 11, 2009, 12:33:54 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/console/src/libraries/core/IOConsole.cc
r6041 r6044 301 301 { 302 302 std::string output = text; 303 int level = this->extractLogLevel(&output); 304 303 305 /* 304 int level = this->extractLogLevel(&output);305 306 306 // Colour line 307 307 switch (level) … … 349 349 // Move cursor down (don't create a new line here because the buffer might flush then!) 350 350 this->cout_ << "\033[1E"; 351 //this->cout_ << std::fixed << std::setprecision(2) << std::setw(5) << Game::getInstance().getAvgFPS() << " fps, ";352 //this->cout_ << std::setprecision(2) << std::setw(5) << Game::getInstance().getAvgTickTime() << " ms tick time";353 this->cout_ << "Terminal width: " << this->terminalWidth_ << ", height: " << this->terminalHeight_;351 this->cout_ << std::fixed << std::setprecision(2) << std::setw(5) << Game::getInstance().getAvgFPS() << " fps, "; 352 this->cout_ << std::setprecision(2) << std::setw(5) << Game::getInstance().getAvgTickTime() << " ms tick time"; 353 // this->cout_ << "Terminal width: " << this->terminalWidth_ << ", height: " << this->terminalHeight_; 354 354 // Restore cursor position 355 355 this->cout_ << "\033[u";
Note: See TracChangeset
for help on using the changeset viewer.