Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 30, 2011, 10:05:49 PM (13 years ago)
Author:
landauf
Message:

no \n needed after executed command in shell.
different color for return value of a command.
fixed width of text InGameConsole (at least on my system).

Location:
code/branches/output/src/libraries/core/command
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • code/branches/output/src/libraries/core/command/ArgumentCompletionFunctions.cc

    r8351 r8803  
    9090            ArgumentCompletionList _groupsandcommands(const std::string& fragment, bool bOnlyShowHidden)
    9191            {
    92                 // note: this function returns only arguments that begin with "fragment", which would't be necessary for the
     92                // note: this function returns only arguments that begin with "fragment", which wouldn't be necessary for the
    9393                //       auto-completion, but it's necessary to place the line-break "\n" between groups and commands
    9494                //       only if both groups AND commands are in the list.
  • code/branches/output/src/libraries/core/command/IOConsolePOSIX.cc

    r8799 r8803  
    382382    void IOConsole::executed()
    383383    {
    384         this->shell_->addOutput(this->promptString_ + this->shell_->getInput() + '\n', Shell::Command);
     384        this->shell_->addOutput(this->promptString_ + this->shell_->getInput(), Shell::Command);
    385385    }
    386386
  • code/branches/output/src/libraries/core/command/IOConsoleWindows.cc

    r8801 r8803  
    329329    void IOConsole::executed()
    330330    {
    331         this->shell_->addOutput(this->promptString_ + this->shell_->getInput() + '\n', Shell::Command);
     331        this->shell_->addOutput(this->promptString_ + this->shell_->getInput(), Shell::Command);
    332332    }
    333333
  • code/branches/output/src/libraries/core/command/Shell.cc

    r8801 r8803  
    395395        else if (result != "")
    396396        {
    397             this->addOutput(result, Command);
     397            this->addOutput(result, Result);
    398398        }
    399399
  • code/branches/output/src/libraries/core/command/Shell.h

    r8801 r8803  
    105105                Input,
    106106                Command,
     107                Result,
    107108                Hint
    108109            };
Note: See TracChangeset for help on using the changeset viewer.