FACT++  1.0
bool ReadlineColor::PrintGeneralHelp ( std::ostream &  out,
const std::string &  name 
)

Print a general help text which also includes the commands pre-defined by the Shell class.

Returns
always true
Todo:
Get it up-to-date

Definition at line 146 of file ReadlineColor.cc.

References kBold, kReset, and kUnderline.

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

147 {
148  out << endl;
149  out << " " << kUnderline << "General help:" << endl << endl;
150  out << " The command history is automatically loaded and saves to" << endl;
151  out << " and from " << name << endl;
152  out << endl;
153  out << kBold << " h,help " << kReset << "Print this help message\n";
154  out << kBold << " clear " << kReset << "Clear history buffer\n";
155  out << kBold << " lh,history " << kReset << "Dump the history buffer to the screen\n";
156  out << kBold << " v,variable " << kReset << "Dump readline variables\n";
157  out << kBold << " f,function " << kReset << "Dump readline functions\n";
158  out << kBold << " m,funmap " << kReset << "Dump readline funmap\n";
159  out << kBold << " c,command " << kReset << "Dump available commands\n";
160  out << kBold << " k,keylist " << kReset << "Dump key bindings\n";
161  out << kBold << " a,attrs " << kReset << "Dump available stream attributes\n";
162  out << kBold << " .! command " << kReset << "Execute a shell command\n";
163  out << kBold << " .w n " << kReset << "Sleep n milliseconds\n";
164  out << kBold << " .x filename " << kReset << "Execute a script of commands (+optional arguments)\n";
165  out << kBold << " .x file:N " << kReset << "Execute a script of commands, start at label N\n";
166  out << kBold << " .j N " << kReset << "Forward jump to label N\n";
167  out << kBold << " .lt f0 f1 N " << kReset << "If float f0 lower than float f1, jump to label N\n";
168  out << kBold << " .gt f0 f1 N " << kReset << "If float f0 greater than float f1, jump to label N\n";
169  out << kBold << " .eq i0 i1 N " << kReset << "If int i0 equal int i1, jump to label N\n";
170  out << kBold << " : N " << kReset << "Defines a label (N=number)\n";
171  out << kBold << " # comment " << kReset << "Ignored\n";
172  out << kBold << " .q,quit " << kReset << "Quit" << endl;
173  out << endl;
174 
175  return true;
176 }
Set attribute Underline.
Definition: WindowLog.h:32
Reset all attributes.
Definition: WindowLog.h:29
Set attribute Bold.
Definition: WindowLog.h:36

+ Here is the caller graph for this function: