- Timestamp:
- Aug 19, 2010, 4:57:06 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/consolecommands3/src/libraries/core/Shell.cc
r7167 r7189 308 308 this->updateListeners<&ShellListener::executed>(); 309 309 310 if (!CommandExecutor::execute(this->inputBuffer_->get())) 310 bool success; 311 const std::string& result = CommandExecutor::query(this->inputBuffer_->get(), &success); 312 if (!success) 311 313 { 312 314 this->outputBuffer_ << "Error: Can't execute \"" << this->inputBuffer_->get() << "\"." << std::endl; 313 315 this->outputChanged(Error); 316 } 317 else if (result != "") 318 { 319 this->outputBuffer_ << result << std::endl; 320 this->outputChanged(Command); 314 321 } 315 322
Note: See TracChangeset
for help on using the changeset viewer.