Changeset 357 in Sophya for trunk/SophyaPI/PIext/piacmd.cc


Ignore:
Timestamp:
Aug 5, 1999, 8:08:07 PM (26 years ago)
Author:
ercodmgr
Message:

Ajout de parametres de Loop (plot2d, ...), Ajout de fonction de
remplissage de matrices et vecteurs a partir de NTuples,
Rationalisation des commandes (arguments par defauts ...) Reza 6/8/99

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PIext/piacmd.cc

    r353 r357  
    435435typedef vector<string> cmdtok;
    436436
     437/* Fonction */
     438static string GetStringFrStdin()
     439{
     440#ifndef __mac__
     441/* On vide le buffer X-Window */
     442XFlush(PIXDisplay());
     443#endif
     444char buff[128];
     445fgets(buff, 128, stdin);
     446buff[127] = '\0';
     447return((string)buff);
     448}
     449
    437450/* --Methode-- */
    438451int PIACmd::Interpret(string& s)
     
    683696    return(0);
    684697    }
    685   char buff[128];
    686   fgets(buff, 128, stdin);
    687   buff[127] = '\0';
    688   mVars[tokens[0]] = buff;
     698  mImgApp->GetConsole()->AddStr(">>> Reading From StdIn \n", PIVA_Magenta);
     699  cout << tokens[0] << " ? " << endl;
     700  mVars[tokens[0]] = GetStringFrStdin();
    689701  }
    690702
     
    833845  Interpret(line);
    834846  }
    835 histon = false;
     847histon = true;
    836848
    837849// hist << "### End of Exec( " << file << " ) " << endl;
     
    870882helpwin->Show();
    871883}
     884
     885
Note: See TracChangeset for help on using the changeset viewer.