Changeset 3260 for code/branches/core4/src/core/Shell.cc
- Timestamp:
- Jun 30, 2009, 4:53:06 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core4/src/core/Shell.cc
r3196 r3260 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.