Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7744 in orxonox.OLD for trunk/src/lib/shell/shell_buffer.cc


Ignore:
Timestamp:
May 20, 2006, 6:09:17 PM (19 years ago)
Author:
bensch
Message:

trunk: the Buffer is moving pretty smoothly :)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/shell/shell_buffer.cc

    r7737 r7744  
    164164
    165165      this->lineCount++;
    166       this->buffer.push_back(newLineBegin);
     166      this->buffer.push_front(newLineBegin);
    167167      if (likely (this->shell != NULL) && unlikely (this->shell->isActive()))
    168168        this->shell->printToDisplayBuffer(newLineBegin);
    169169
    170170      if (this->buffer.size() > this->bufferSize)
    171         this->buffer.pop_front();
     171        this->buffer.pop_back();
    172172
    173173      newLineBegin = newLineEnd+1;
     
    183183
    184184    std::list<std::string>::const_iterator bufferLine;
    185     for (bufferLine = this->buffer.begin(); bufferLine != this->buffer.end(); bufferLine++)
     185    for (bufferLine = --this->buffer.end(); bufferLine != this->buffer.begin(); --bufferLine)
    186186      printf((*bufferLine).c_str());
    187187  }
Note: See TracChangeset for help on using the changeset viewer.