Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 18, 2009, 12:11:16 AM (14 years ago)
Author:
rgrieder
Message:

Fixed a problem with output being written directly to the Shell.
Use Shell::addOutput instead of Shell:addOutputLine now and include a new line if you want to print a whole line.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2/src/libraries/core/IOConsole.cc

    r6350 r6375  
    6060    void IOConsole::executed()
    6161    {
    62         this->shell_->addOutputLine(this->promptString_ + this->shell_->getInput(), Shell::Command);
     62        this->shell_->addOutput(this->promptString_ + this->shell_->getInput() + '\n', Shell::Command);
    6363    }
    6464
     
    509509        std::cout.flush();
    510510        if (!this->origCout_.str().empty())
    511             this->shell_->addOutputLine(this->origCout_.str(), Shell::None);
     511            this->shell_->addOutput(this->origCout_.str(), Shell::None);
    512512
    513513        this->shell_->unregisterListener(this);
     
    602602        if (!this->origCout_.str().empty())
    603603        {
    604             this->shell_->addOutputLine(this->origCout_.str(), Shell::None);
     604            this->shell_->addOutput(this->origCout_.str(), Shell::None);
    605605            this->origCout_.str("");
    606606        }
Note: See TracChangeset for help on using the changeset viewer.