Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5135 in orxonox.OLD for trunk/src/util/shell.cc


Ignore:
Timestamp:
Aug 26, 2005, 12:51:27 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: it is now possible to execute Commands registered to the ShellCommandBase with no arguments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/util/shell.cc

    r5130 r5135  
    7878  //void ShellCommand<T>::registerCommand(const char* commandName, ClassID classID, T* object, void* functionPointer, unsigned int paramCount, ...)
    7979
    80   ShellCommand<Shell>::registerCommand("clear", CL_NULL, this, &Shell::clear, 0, 1);
     80  ShellCommand<Shell>::registerCommand("clear", CL_NULL, this, &Shell::clear);
    8181}
    8282
     
    457457  this->inputHistory->add(newCommand);
    458458
    459   if (!strcmp(this->inputLine, "clear"))
    460   {
    461     this->clear();
    462   }
     459  ShellCommandBase::execute(this->inputLine);
     460//  if (!strcmp(this->inputLine, "clear"))
     461//  {
     462//    this->clear();
     463//  }
    463464
    464465  this->flushInputLine();
Note: See TracChangeset for help on using the changeset viewer.