Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Aug 26, 2005, 12:04:43 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: flush

File:
1 edited

Legend:

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

    r5129 r5130  
    7676    evh->subscribe(this, ES_SHELL, i);
    7777
    78 
    79 //  this->registerCommand("clear", Shell::)
     78  //void ShellCommand<T>::registerCommand(const char* commandName, ClassID classID, T* object, void* functionPointer, unsigned int paramCount, ...)
     79
     80  ShellCommand<Shell>::registerCommand("clear", CL_NULL, this, &Shell::clear, 0, 1);
    8081}
    8182
     
    458459  if (!strcmp(this->inputLine, "clear"))
    459460  {
    460     this->flushBuffers();
    461     this->addBufferLine("orxonox - shell\n ==================== \n", NULL);
     461    this->clear();
    462462  }
    463463
     
    465465
    466466  return false;
     467}
     468
     469void Shell::clear()
     470{
     471  this->flushBuffers();
     472  this->addBufferLine("orxonox - shell\n ==================== \n", NULL);
    467473}
    468474
Note: See TracChangeset for help on using the changeset viewer.