Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 28, 2008, 5:30:11 AM (16 years ago)
Author:
landauf
Message:

merged console branch into network branch

after several heavy troubles it compiles, but there is still a bug I couldn't fix: orxonox crashes as soon as one presses a key after opening the console… maybe someone else sees the problem?

File:
1 copied

Legend:

Unmodified
Added
Removed
  • code/branches/network/src/core/Shell.h

    r1445 r1446  
    7171            void unregisterListener(ShellListener* listener);
    7272
     73            void setInputBuffer(InputBuffer* buffer);
    7374            inline InputBuffer& getInputBuffer()
    74                 { return this->inputBuffer_; }
     75                { return (*this->inputBuffer_); }
    7576            inline OutputBuffer& getOutputBuffer()
    7677                { return this->outputBuffer_; }
     
    7879            void setCursorPosition(unsigned int cursor);
    7980            inline unsigned int getCursorPosition() const
    80                 { return this->inputBuffer_.getCursorPosition(); }
     81                { return this->inputBuffer_->getCursorPosition(); }
    8182
    8283            void setInput(const std::string& input);
     
    8586                { this->setInput(""); }
    8687            inline std::string getInput() const
    87                 { return this->inputBuffer_.get(); }
     88                { return this->inputBuffer_->get(); }
    8889
    8990            std::list<std::string>::const_iterator getNewestLineIterator() const;
     
    127128
    128129            std::list<ShellListener*> listeners_;
    129             InputBuffer inputBuffer_;
     130            InputBuffer* inputBuffer_;
    130131            OutputBuffer outputBuffer_;
    131132            bool finishedLastLine_;
Note: See TracChangeset for help on using the changeset viewer.