Changeset 6141 for code/branches/presentation2/src
- Timestamp:
- Nov 25, 2009, 7:26:10 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2/src/libraries/core/IOConsole.cc
r6140 r6141 578 578 case 1: SetConsoleTextAttribute(stdOutHandle_, FOREGROUND_RED | FOREGROUND_INTENSITY); break; 579 579 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; 582 582 default: break; 583 583 } … … 592 592 void IOConsole::printInputLine() 593 593 { 594 SetConsoleTextAttribute(stdOutHandle_, FOREGROUND_GREEN | FOREGROUND_INTENSITY); 594 595 this->moveCursorYAndHome(0); 595 596 this->clearCurrentLine(); … … 597 598 this->moveCursorYAndHome(0); 598 599 this->moveCursor(this->promptString_.size() + this->buffer_->getCursorPosition(), 0); 600 SetConsoleTextAttribute(stdOutHandle_, FOREGROUND_RED | FOREGROUND_BLUE | FOREGROUND_GREEN); 599 601 } 600 602 … … 603 605 if (this->willPrintStatusLines()) 604 606 { 607 SetConsoleTextAttribute(stdOutHandle_, FOREGROUND_GREEN); 605 608 this->bStatusPrinted_ = true; 606 609 // Put cursor on home position, one line down the input line … … 615 618 this->moveCursorYAndHome(-1); 616 619 this->moveCursor(this->promptString_.size() + this->buffer_->getCursorPosition(), 0); 620 SetConsoleTextAttribute(stdOutHandle_, FOREGROUND_RED | FOREGROUND_BLUE | FOREGROUND_GREEN); 617 621 } 618 622 else
Note: See TracChangeset
for help on using the changeset viewer.