Ignore:
Timestamp:
06/19/13 17:09:29 (11 years ago)
Author:
tbretz
Message:
When we output something ourselves before the event hook is called in readline, we have to signal readline that we have started a new row, so that readline can properly update the prompt. I hope this finally solves the flickering issue on my laptop and/or the problematic display in the fadctrl.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/Console.cc

    r14083 r16869  
    149149//! EventHook to update the prompt.
    150150//
    151 void Console::EventHook()
     151void Console::EventHook(bool)
    152152{
    153153    // If the output is continous and we are going to output something
     
    155155    // doesn't work well if the input line is already two lines)
    156156    // and then flush the buffer.
    157     if (fContinous && fLogO.GetSizeBacklog()>0)
     157    const bool newline = fContinous && fLogO.GetSizeBacklog()>0;
     158    if (newline)
    158159    {
    159160        // Clear the line we are going to overwrite
     
    163164
    164165    // Call Readline's EventHook to update the prompt
    165     Readline::EventHook();
     166    Readline::EventHook(newline);
    166167}
    167168
Note: See TracChangeset for help on using the changeset viewer.