Changeset 6007
- Timestamp:
- Oct 30, 2009, 5:26:28 PM (15 years ago)
- Location:
- code/branches/console/src/libraries
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/console/src/libraries/core/IOConsole.cc
r6006 r6007 54 54 #ifdef ORXONOX_PLATFORM_UNIX 55 55 56 termios* IOConsole::originalTerminalSettings_;57 58 56 namespace EscapeMode 59 57 { … … 69 67 : shell_(new Shell("IOConsole", false)) 70 68 , buffer_(shell_->getInputBuffer()) 69 , originalTerminalSettings_(new termios()) 71 70 , bStatusPrinted_(false) 72 71 { 73 this->originalTerminalSettings_ = new termios();74 72 this->setTerminalMode(); 75 73 this->shell_->registerListener(this); -
code/branches/console/src/libraries/core/IOConsole.h
r6004 r6007 55 55 56 56 void setTerminalMode(); 57 staticvoid resetTerminalMode();57 void resetTerminalMode(); 58 58 int getTerminalSize(int* x, int* y); 59 59 … … 72 72 Shell* shell_; 73 73 InputBuffer* buffer_; 74 static termios*originalTerminalSettings_;74 termios* originalTerminalSettings_; 75 75 bool bPrintStatusLine_; 76 76 bool bStatusPrinted_; -
code/branches/console/src/libraries/core/PathConfig.cc
r5929 r6007 263 263 putenv(const_cast<char*>(("PATH=" + pathVariable + ";" + modulePath_.string()).c_str())); 264 264 265 // Make sure the path exists, otherwise don't load modules 266 if (!boost::filesystem::exists(modulePath_)) 267 return modulePaths; 268 265 269 boost::filesystem::directory_iterator file(modulePath_); 266 270 boost::filesystem::directory_iterator end; -
code/branches/console/src/libraries/util/OutputHandler.cc
r6004 r6007 70 70 called from getInstance!) 71 71 */ 72 LogFileWriter( OutputHandler& outputHandler)72 LogFileWriter() 73 73 : OutputListener(OutputHandler::logFileOutputListenerName_s) 74 74 { … … 92 92 93 93 this->outputStream_ = &this->logFile_; 94 // Use default level until we get the configValue from the Core95 this->setSoftDebugLevel(OutputLevel::Debug);96 outputHandler.registerOutputListener(this);97 94 } 98 95 … … 147 144 called from getInstance!) 148 145 */ 149 MemoryLogWriter( OutputHandler& outputHandler)146 MemoryLogWriter() 150 147 : OutputListener("memoryLog") 151 148 { 152 149 this->outputStream_ = &this->buffer_; 153 // We capture as much input as the listener with the highest level154 this->setSoftDebugLevel(OutputHandler::getSoftDebugLevel());155 outputHandler.registerOutputListener(this);156 150 } 157 151 … … 182 176 : outputLevel_(OutputLevel::Verbose) 183 177 { 184 this->logFile_ = new LogFileWriter(*this); 185 this->output_ = new MemoryLogWriter(*this); 178 this->logFile_ = new LogFileWriter(); 179 // Use default level until we get the configValue from the Core 180 this->logFile_->softDebugLevel_ = OutputLevel::Debug; 181 this->registerOutputListener(this->logFile_); 182 183 this->output_ = new MemoryLogWriter(); 184 // We capture as much input as the listener with the highest level 185 this->output_->softDebugLevel_ = getSoftDebugLevel(); 186 this->registerOutputListener(this->output_); 186 187 } 187 188
Note: See TracChangeset
for help on using the changeset viewer.