Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7764 in orxonox.OLD for trunk/src/lib/shell


Ignore:
Timestamp:
May 22, 2006, 8:50:59 PM (19 years ago)
Author:
bensch
Message:

trunk: \n at the beginning won't infinit-loop anymore

Location:
trunk/src/lib/shell
Files:
3 edited

Legend:

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

    r7762 r7764  
    361361    this->bufferText.front()->setRelCoor2D(this->calculateLinePosition(0)- Vector2D(-1000,0));
    362362
    363 
    364363    // Move all lines one Entry up.
    365364    this->repositionText();
  • trunk/src/lib/shell/shell_buffer.cc

    r7762 r7764  
    116116      }
    117117
     118      if (inputBuffer[lineBegin] == '\n')
     119        lineBegin++, lineEnd++;
     120
    118121      if (this->buffer.size() > this->maxBufferSize)
    119122        this->buffer.pop_back();
  • trunk/src/lib/shell/shell_completion.cc

    r7475 r7764  
    223223    for (charIT = completionList.begin(); charIT != completionList.end(); charIT++)
    224224    {
    225       printf("== %s\n", (*charIT).name.c_str());
    226225      if ((*charIT).type != changeType)
    227226      {
Note: See TracChangeset for help on using the changeset viewer.