FACT++  1.0
bool Readline::PrintGeneralHelp ( )
virtual

Print a general help message. This is intended for being overwritten by deriving classes.

rl_outstream can be redirected using SetStreamOut()

Returns
always true

Reimplemented in RemoteControl< Console >, RemoteControl< ConsoleStream >, RemoteControl< Shell >, Console, Shell, LocalControl< Console >, LocalControl< Shell >, and LocalControl< ConsoleStream >.

Definition at line 983 of file Readline.cc.

References GetName().

Referenced by Console::GetStreamIn(), Process(), and SetSection().

984 {
985  fprintf(rl_outstream, "\n");
986  fprintf(rl_outstream, " General help:\n");
987  fprintf(rl_outstream, " h,help Print this help message\n");
988  fprintf(rl_outstream, " clear Clear history buffer\n");
989  fprintf(rl_outstream, " lh,history Dump the history buffer to the screen\n");
990  fprintf(rl_outstream, " v,variables Dump readline variables\n");
991  fprintf(rl_outstream, " f,functions Dump readline functions\n");
992  fprintf(rl_outstream, " m,funmap Dump readline funmap\n");
993  fprintf(rl_outstream, " c,commands Dump available commands\n");
994  fprintf(rl_outstream, " k,keylist Dump key bindings\n");
995  fprintf(rl_outstream, " .! command Execute a shell command\n");
996  fprintf(rl_outstream, " .w n Sleep n milliseconds\n");
997  fprintf(rl_outstream, " .x file .. Execute a script of commands (+optional argumnets)\n");
998  fprintf(rl_outstream, " .x file:N .. Execute a script of commands, start at label N\n");
999  fprintf(rl_outstream, " .j N Forward jump to label N\n");
1000  fprintf(rl_outstream, " .lt f0 f1 N If float f0 lower than float f1, jump to label N\n");
1001  fprintf(rl_outstream, " .gt f0 f1 N If float f0 greater than float f1, jump to label N\n");
1002  fprintf(rl_outstream, " .eq i0 i1 N If int i0 equal int i1, jump to label N\n");
1003  fprintf(rl_outstream, " : N Defines a label (N=number)\n");
1004  fprintf(rl_outstream, " # comment Ignored\n");
1005  fprintf(rl_outstream, " .q,quit Quit\n");
1006  fprintf(rl_outstream, "\n");
1007  fprintf(rl_outstream, " The command history is automatically loaded and saves to\n");
1008  fprintf(rl_outstream, " and from %s.\n", GetName().c_str());
1009  fprintf(rl_outstream, "\n");
1010  return true;
1011 }
std::string GetName() const
Definition: Readline.h:88

+ Here is the call graph for this function:

+ Here is the caller graph for this function: