FACT++  1.0
bool ReadlineColor::Process ( std::ostream &  out,
const std::string &  str 
)

Definition at line 219 of file ReadlineColor.cc.

References Readline::DumpFunctions(), Readline::DumpFunmap(), Readline::DumpHistory(), Readline::DumpVariables(), ExecuteShellCommand(), kBold, PrintAttributes(), and Readline::RedirectionWrapper().

Referenced by Shell::Process(), Console::Process(), ChatClient< Shell >::Process(), LocalControl< ConsoleStream >::Process(), and RemoteControl< Shell >::Process().

220 {
221  // ----------- Readline -----------
222 
223  if (str.substr(0, 2)==".!")
224  return ExecuteShellCommand(out, str.substr(2));
225 
226  if (str=="lh" || str=="history")
227  {
228  out << endl << kBold << "History:" << endl;
230  }
231 
232  if (str=="v" || str=="variable")
233  {
234  out << endl << kBold << "Variables:" << endl;
236  }
237 
238  if (str=="f" || str=="function")
239  {
240  out << endl << kBold << "Functions:" << endl;
242  }
243 
244  if (str=="m" || str=="funmap")
245  {
246  out << endl << kBold << "Funmap:" << endl;
248  }
249 
250  // ------------ ReadlineWindow -------------
251 
252  if (str=="a" || str=="attrs")
253  return PrintAttributes(out);
254 
255  return false;
256 }
bool PrintAttributes(std::ostream &out)
static bool DumpHistory()
Definition: Readline.cc:897
char str[80]
Definition: test_client.c:7
static bool RedirectionWrapper(std::ostream &out, bool(*function)())
Definition: Readline.cc:192
static bool DumpFunctions()
Definition: Readline.cc:687
bool ExecuteShellCommand(std::ostream &out, const std::string &cmd)
static bool DumpFunmap()
Definition: Readline.cc:704
static bool DumpVariables()
Definition: Readline.cc:667
Set attribute Bold.
Definition: WindowLog.h:36

+ Here is the call graph for this function:

+ Here is the caller graph for this function: