Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6104 for code/branches/console


Ignore:
Timestamp:
Nov 20, 2009, 4:44:51 PM (15 years ago)
Author:
rgrieder
Message:

Smoother IOConsole exit function

File:
1 edited

Legend:

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

    r6103 r6104  
    160160        // Erase input and status lines
    161161        this->cout_ << "\033[1G\033[J";
     162        // Move cursor to the bottom
     163        this->cout_ << "\033[" << this->statusLineWidths_.size() << 'B';
     164        // Scroll terminal to compensate for erased lines
     165        this->cout_ << "\033[" << this->statusLineWidths_.size() << 'T';
    162166
    163167        resetTerminalMode();
Note: See TracChangeset for help on using the changeset viewer.