Changeset 3280 for code/trunk/src/core/Shell.cc
- Timestamp:
- Jul 12, 2009, 11:58:01 PM (16 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/core4 (added) merged: 3235-3237,3245-3250,3253-3254,3260-3261,3265,3270
- Property svn:mergeinfo changed
-
code/trunk/src/core/Shell.cc
r3196 r3280 78 78 OutputHandler::getOutStream().setOutputBuffer(&this->outputBuffer_); 79 79 80 // Get a config file for the command history 81 this->commandHistoryConfigFileType_ = ConfigFileManager::getInstance().getNewConfigFileType(); 82 ConfigFileManager::getInstance().setFilename(this->commandHistoryConfigFileType_, "commandHistory.ini"); 83 80 84 this->setConfigValues(); 81 85 … … 93 97 void Shell::setConfigValues() 94 98 { 95 SetConfigValue(maxHistoryLength_, 100).callback(this, &Shell::commandHistoryLengthChanged); 96 SetConfigValue(historyOffset_, 0).callback(this, &Shell::commandHistoryOffsetChanged); 97 SetConfigValueVector(commandHistory_, std::vector<std::string>()); 99 SetConfigValueGeneric(commandHistoryConfigFileType_, maxHistoryLength_, 100) 100 .callback(this, &Shell::commandHistoryLengthChanged); 101 SetConfigValueGeneric(commandHistoryConfigFileType_, historyOffset_, 0) 102 .callback(this, &Shell::commandHistoryOffsetChanged); 103 SetConfigValueVectorGeneric(commandHistoryConfigFileType_, commandHistory_, std::vector<std::string>()); 98 104 } 99 105
Note: See TracChangeset
for help on using the changeset viewer.