Changeset 14071 for trunk/FACT++


Ignore:
Timestamp:
06/04/12 21:51:39 (12 years ago)
Author:
tbretz
Message:
Process Readline's external input in the mainloop.
File:
1 edited

Legend:

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

    r13771 r14071  
    233233{
    234234    while (!IsStopped())
    235         usleep(10000);
    236 }
     235    {
     236        const string buf = GetExternalInput();
     237        SetExternalInput("");
     238        if (!buf.empty())
     239            ProcessLine(buf);
     240
     241        usleep(100000);
     242    }
     243}
Note: See TracChangeset for help on using the changeset viewer.