Ignore:
Timestamp:
06/04/12 21:48:13 (12 years ago)
Author:
tbretz
Message:
Added something to the EventHook which allows to post command from the outside.
File:
1 edited

Legend:

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

    r14010 r14069  
    7474int         Readline::fScriptDepth = 0;
    7575std::string Readline::fScript;
     76std::string Readline::fExternalInput;
    7677
    7778// --------------------------------------------------------------------------
     
    307308void Readline::EventHook()
    308309{
     310    const string cpy = fExternalInput;
     311    fExternalInput = "";
     312
     313    if (!cpy.empty())
     314    {
     315        rl_replace_line(cpy.c_str(), 1);
     316        rl_done = 1;
     317    }
     318
    309319    const string p = GetUpdatePrompt();
    310320    if (p.empty())
Note: See TracChangeset for help on using the changeset viewer.