FACT++  1.0
bool Console::Process ( const std::string &  str)
virtual

Processes the command provided by the Shell-class.

Returns
whether a command was successfully processed or could not be found

Reimplemented from Readline.

Reimplemented in RemoteControl< Console >, LocalControl< Console >, and ChatClient< Console >.

Definition at line 108 of file Console.cc.

References fLogI, Lock(), ReadlineColor::Process(), Readline::Process(), and Unlock().

109 {
111  return true;
112 
113  if (str.substr(0, 3)==".w ")
114  {
115  Lock();
116  usleep(stoul(str.substr(3))*1000);
117  Unlock();
118  return true;
119  }
120 
121  if (Readline::Process(str))
122  return true;
123 
124  return false;
125 }
void Unlock()
Definition: Console.cc:94
char str[80]
Definition: test_client.c:7
WindowLog fLogI
Definition: Console.h:38
virtual bool Process(const std::string &str)
Definition: Readline.cc:1094
bool Process(std::ostream &out, const std::string &str)
void Lock()
Definition: Console.cc:86

+ Here is the call graph for this function: