Changeset 6350 for code/branches
- Timestamp:
- Dec 14, 2009, 1:03:27 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2/src/libraries/core/IOConsole.cc
r6214 r6350 121 121 IOConsole::~IOConsole() 122 122 { 123 // Empty all buffers 124 this->preUpdate(Game::getInstance().getGameClock()); 123 // Process output written to std::cout in the meantime 124 std::cout.flush(); 125 if (!this->origCout_.str().empty()) 126 this->shell_->addOutputLine(this->origCout_.str(), Shell::None); 125 127 // Erase input and status lines 126 128 this->cout_ << "\033[1G\033[J"; … … 504 506 IOConsole::~IOConsole() 505 507 { 508 // Process output written to std::cout in the meantime 509 std::cout.flush(); 510 if (!this->origCout_.str().empty()) 511 this->shell_->addOutputLine(this->origCout_.str(), Shell::None); 512 506 513 this->shell_->unregisterListener(this); 507 // Empty all buffers508 this->preUpdate(Game::getInstance().getGameClock());509 514 510 515 // Erase input and status lines … … 594 599 595 600 // Process output written to std::cout 601 std::cout.flush(); 596 602 if (!this->origCout_.str().empty()) 597 603 {
Note: See TracChangeset
for help on using the changeset viewer.