Changeset 7729 in orxonox.OLD for trunk/src/lib/shell
- Timestamp:
- May 19, 2006, 3:07:09 PM (19 years ago)
- Location:
- trunk/src/lib/shell
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/shell/shell_buffer.cc
r7375 r7729 103 103 104 104 SDL_mutexP(ShellBuffer::bufferMutex); 105 #if DEBUG < 3105 #if DEBUG_LEVEL < 3 106 106 if (ShellBuffer::singletonRef == NULL) 107 107 #endif 108 108 vprintf(line, arguments); 109 #if DEBUG < 3109 #if DEBUG_LEVEL < 3 110 110 else 111 111 #else … … 180 180 181 181 /** 182 * displays some nice output from the Shell182 * @brief displays some nice output from the Shell 183 183 */ 184 184 void ShellBuffer::debug() const -
trunk/src/lib/shell/shell_input.cc
r7676 r7729 44 44 45 45 this->inputLine = ""; 46 this->historyIT = this->history.begin();46 this->historyIT = ShellInput::history.begin(); 47 47 this->setHistoryLength(50); 48 48 this->historyScrolling = false; … … 65 65 } 66 66 67 std::list<std::string> ShellInput::history; 68 67 69 /** 68 70 * @brief standard deconstructor 69 71 */ 70 72 ShellInput::~ShellInput () 71 {}73 {} 72 74 73 75 /** … … 173 175 174 176 // adding the new Command to the History 175 this->history.push_back(this->inputLine); 177 if (history.back() != this->inputLine) 178 this->history.push_back(this->inputLine); 176 179 if (this->history.size() > this->historyLength) 177 180 { -
trunk/src/lib/shell/shell_input.h
r7458 r7729 69 69 Uint16 pressedKey; //!< the pressed key that will be repeated. 70 70 71 st d::list<std::string>history; //!< The history of given commands.71 static std::list<std::string> history; //!< The history of given commands. 72 72 std::list<std::string>::iterator historyIT; //!< The locator that tells us, where we are in the history. 73 73 unsigned int historyLength; //!< The maximum length of the InputHistory.
Note: See TracChangeset
for help on using the changeset viewer.