[Orxonox-commit 1463] r6181 - code/branches/presentation2/src/libraries/core

rgrieder at orxonox.net rgrieder at orxonox.net
Sun Nov 29 22:48:25 CET 2009


Author: rgrieder
Date: 2009-11-29 22:48:25 +0100 (Sun, 29 Nov 2009)
New Revision: 6181

Modified:
   code/branches/presentation2/src/libraries/core/IOConsole.cc
Log:
Fixed Linux IOConsole

Modified: code/branches/presentation2/src/libraries/core/IOConsole.cc
===================================================================
--- code/branches/presentation2/src/libraries/core/IOConsole.cc	2009-11-29 21:43:43 UTC (rev 6180)
+++ code/branches/presentation2/src/libraries/core/IOConsole.cc	2009-11-29 21:48:25 UTC (rev 6181)
@@ -397,7 +397,7 @@
         // Erase the line
         this->cout_ << "\033[K";
         // Reprint the last output line
-        this->printOutputLine(this->shell_->getNewestLineIterator()->first);
+        this->printOutputLine(this->shell_->getNewestLineIterator()->first, this->shell_->getNewestLineIterator()->second);
         // Restore cursor
         this->cout_ << "\033[u";
         this->cout_.flush();
@@ -415,7 +415,10 @@
         this->cout_ << "\033[J";
         // Print the new output lines
         for (int i = 0; i < newLines; ++i)
-            this->printOutputLine(this->shell_->getNewestLineIterator()->first.substr(i*this->terminalWidth_, this->terminalWidth_));
+        {
+            Shell::LineList::const_iterator it = this->shell_->getNewestLineIterator();
+            this->printOutputLine(it->first.substr(i*this->terminalWidth_, this->terminalWidth_), it->second);
+        }
         // Move cursor down
         this->cout_ << "\033[1B\033[1G";
         // Print status and input lines




More information about the Orxonox-commit mailing list