Changeset 357 in Sophya for trunk/SophyaPI/PIext/piacmd.cc
- Timestamp:
- Aug 5, 1999, 8:08:07 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PIext/piacmd.cc
r353 r357 435 435 typedef vector<string> cmdtok; 436 436 437 /* Fonction */ 438 static string GetStringFrStdin() 439 { 440 #ifndef __mac__ 441 /* On vide le buffer X-Window */ 442 XFlush(PIXDisplay()); 443 #endif 444 char buff[128]; 445 fgets(buff, 128, stdin); 446 buff[127] = '\0'; 447 return((string)buff); 448 } 449 437 450 /* --Methode-- */ 438 451 int PIACmd::Interpret(string& s) … … 683 696 return(0); 684 697 } 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(); 689 701 } 690 702 … … 833 845 Interpret(line); 834 846 } 835 histon = false;847 histon = true; 836 848 837 849 // hist << "### End of Exec( " << file << " ) " << endl; … … 870 882 helpwin->Show(); 871 883 } 884 885
Note:
See TracChangeset
for help on using the changeset viewer.