Changeset 1334 for code/branches/console/src/core
- Timestamp:
- May 20, 2008, 1:48:40 AM (17 years ago)
- Location:
- code/branches/console/src/core
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/console/src/core/InputBuffer.cc
r1317 r1334 163 163 bool InputBuffer::keyPressed(const OIS::KeyEvent &e) 164 164 { 165 if (this->keyboard_->isModifierDown(OIS::Keyboard::Alt) && e.key == OIS::KC_TAB) 166 return true; 167 165 168 for (std::list<InputBufferListenerTuple>::iterator it = this->listeners_.begin(); it != this->listeners_.end(); ++it) 166 169 { -
code/branches/console/src/core/OutputBuffer.cc
r1322 r1334 78 78 79 79 bool eof = this->stream_.eof(); 80 bool fail = this->stream_.fail(); 80 81 81 82 if (eof) … … 85 86 } 86 87 87 return (!eof );88 return (!eof && !fail); 88 89 } 89 90 -
code/branches/console/src/core/Script.cc
r1255 r1334 68 68 output_ += str; 69 69 // COUT(4) << "Lua_output!:" << std::endl << str << std::endl << "***" << std::endl; 70 COUT(5) << str << std::endl;70 COUT(5) << str; 71 71 } 72 72 -
code/branches/console/src/core/Shell.cc
r1327 r1334 48 48 this->historyOffset_ = 0; 49 49 this->finishedLastLine_ = true; 50 this->bAddOutputLevel_ = false; 50 51 51 52 this->clearLines(); … … 131 132 } 132 133 133 void Shell::addLine(const std::string& line, unsignedint level)134 void Shell::addLine(const std::string& line, int level) 134 135 { 135 136 int original_level = OutputHandler::getOutStream().getOutputLevel(); … … 196 197 if (this->finishedLastLine_) 197 198 { 199 if (this->bAddOutputLevel_) 200 output.insert(0, 1, (char)OutputHandler::getOutStream().getOutputLevel()); 201 198 202 this->lines_.insert(this->lines_.begin(), output); 199 203 … … 239 243 void Shell::hintandcomplete() 240 244 { 241 this->addLine(CommandExecutor::hint(this->inputBuffer_.get()), 0);245 this->addLine(CommandExecutor::hint(this->inputBuffer_.get()), -1); 242 246 this->inputBuffer_.set(CommandExecutor::complete(this->inputBuffer_.get())); 243 247 -
code/branches/console/src/core/Shell.h
r1326 r1334 83 83 std::list<std::string>::const_iterator getEndIterator() const; 84 84 85 void addLine(const std::string& line, unsignedint level);85 void addLine(const std::string& line, int level); 86 86 void clearLines(); 87 87 … … 90 90 inline unsigned int getScrollPosition() const 91 91 { return this->scrollPosition_; } 92 93 inline void addOutputLevel(bool bAddOutputLevel) 94 { this->bAddOutputLevel_ = bAddOutputLevel; } 92 95 93 96 private: … … 127 130 unsigned int historyPosition_; 128 131 unsigned int historyOffset_; 132 bool bAddOutputLevel_; 129 133 }; 130 134 }
Note: See TracChangeset
for help on using the changeset viewer.