Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6141


Ignore:
Timestamp:
Nov 25, 2009, 7:26:10 AM (14 years ago)
Author:
rgrieder
Message:

Better colour scheme for the IOConsole on Windows.

File:
1 edited

Legend:

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

    r6140 r6141  
    578578        case  1: SetConsoleTextAttribute(stdOutHandle_, FOREGROUND_RED | FOREGROUND_INTENSITY); break;
    579579        case  2: SetConsoleTextAttribute(stdOutHandle_, FOREGROUND_BLUE | FOREGROUND_RED | FOREGROUND_INTENSITY); break;
    580         case  3: SetConsoleTextAttribute(stdOutHandle_, FOREGROUND_BLUE | FOREGROUND_INTENSITY); break;
    581         case  4: SetConsoleTextAttribute(stdOutHandle_, FOREGROUND_GREEN); break;
     580        case  3: SetConsoleTextAttribute(stdOutHandle_, FOREGROUND_INTENSITY); break;
     581        case  4: SetConsoleTextAttribute(stdOutHandle_, FOREGROUND_INTENSITY); break;
    582582        default: break;
    583583        }
     
    592592    void IOConsole::printInputLine()
    593593    {
     594        SetConsoleTextAttribute(stdOutHandle_, FOREGROUND_GREEN | FOREGROUND_INTENSITY);
    594595        this->moveCursorYAndHome(0);
    595596        this->clearCurrentLine();
     
    597598        this->moveCursorYAndHome(0);
    598599        this->moveCursor(this->promptString_.size() + this->buffer_->getCursorPosition(), 0);
     600        SetConsoleTextAttribute(stdOutHandle_, FOREGROUND_RED | FOREGROUND_BLUE | FOREGROUND_GREEN);
    599601    }
    600602
     
    603605        if (this->willPrintStatusLines())
    604606        {
     607            SetConsoleTextAttribute(stdOutHandle_, FOREGROUND_GREEN);
    605608            this->bStatusPrinted_ = true;
    606609            // Put cursor on home position, one line down the input line
     
    615618            this->moveCursorYAndHome(-1);
    616619            this->moveCursor(this->promptString_.size() + this->buffer_->getCursorPosition(), 0);
     620            SetConsoleTextAttribute(stdOutHandle_, FOREGROUND_RED | FOREGROUND_BLUE | FOREGROUND_GREEN);
    617621        }
    618622        else
Note: See TracChangeset for help on using the changeset viewer.