Changeset 14985 for trunk/FACT++


Ignore:
Timestamp:
03/04/13 20:15:33 (12 years ago)
Author:
tbretz
Message:
Added .java command to run an interactive console; do not return an updated prompt if a script (the console) is running; during script execution this function should not be called, because no console should be displayed anyway
Location:
trunk/FACT++/src
Files:
2 edited

Legend:

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

    r14674 r14985  
    5454string RemoteConsole::GetUpdatePrompt() const
    5555{
     56    if (fImp->GetCurrentState()>=3)
     57        return "";
     58
    5659    // If we are continously flushing the buffer omit the buffer size
    5760    // If we are buffering show the buffer size
  • trunk/FACT++/src/RemoteControl.h

    r14974 r14985  
    379379        lout <<          "                "              "<imeout>  A timeout in millisenconds how long to wait (e.g. 500)\n";
    380380        lout <<          "                "              "<label>   A label (number) until which everything is skipped in case of timeout\n";
     381        lout << kBold << "   .js file     " << kReset << "Execute a JavaScript\n";
     382        if (!StateMachineDimControl::fIsServer)
     383            lout << kBold << "   .java        " << kReset << "Start JavaScript interpreter\n";
    381384        lout << endl;
    382385        return true;
     
    436439            T::Lock();
    437440            JsRun(opt, data);
     441            T::Unlock();
     442
     443            return true;
     444        }
     445
     446        if (str==".java" && !StateMachineDimControl::fIsServer)
     447        {
     448            T::fScript = "java";
     449
     450            T::Lock();
     451            JsRun("");
    438452            T::Unlock();
    439453
Note: See TracChangeset for help on using the changeset viewer.