Changeset 10922
- Timestamp:
- 06/07/11 22:17:12 (14 years ago)
- Location:
- trunk/FACT++/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/Console.cc
r10860 r10922 89 89 return true; 90 90 91 if (str.substr(0, 3)==".w ") 92 { 93 fLogO.Display(true); 94 fLogO.SetBacklog(false); 95 fLogO.SetNullOutput(false); 96 usleep(atoi(str.c_str()+3)*1000); 97 fLogO.SetNullOutput(true); 98 fLogO.SetBacklog(true); 99 return true; 100 } 101 91 102 if (Readline::Process(str)) 92 103 return true; -
trunk/FACT++/src/Readline.cc
r10868 r10922 897 897 fprintf(rl_outstream, " c,commands Dump available commands\n"); 898 898 fprintf(rl_outstream, " k,keylist Dump key bindings\n"); 899 fprintf(rl_outstream, " .w n Sleep n milliseconds\n"); 899 900 fprintf(rl_outstream, " .x filename Execute a script of commands\n"); 900 901 fprintf(rl_outstream, " .q,quit Quit\n"); … … 942 943 bool Readline::Process(const string &str) 943 944 { 945 if (str.substr(0, 3)==".w ") 946 { 947 usleep(atoi(str.c_str()+3)*1000); 948 return true; 949 } 950 944 951 if (str.substr(0, 3)==".x ") 945 952 {
Note:
See TracChangeset
for help on using the changeset viewer.