Changeset 16916


Ignore:
Timestamp:
06/26/13 18:00:59 (11 years ago)
Author:
tbretz
Message:
Not only when the screen geometry changes, but also when the prompt change we have to go back to the beginning of the line and re-display the prompt, this is because readline cannot determine the size of the prompt well, because of the ascii control condes
File:
1 edited

Legend:

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

    r16880 r16916  
    328328        rl_on_new_line();
    329329
     330    if (rl_prompt==p)
     331    {
     332        Redisplay();
     333        return;
     334    }
     335
    330336    UpdatePrompt(p);
    331     Redisplay();
     337
     338    int w, h;
     339    rl_get_screen_size(&h, &w);
     340    cout << '\r' << string(w+1, ' ') << '\r';
     341    rl_forced_update_display();
    332342}
    333343
Note: See TracChangeset for help on using the changeset viewer.