FACT++  1.0
bool ReadlineColor::PrintKeyBindings ( std::ostream &  out)

Displays the keybindings available due to the Shell class

Returns
always true
Todo:
Update output

Definition at line 115 of file ReadlineColor.cc.

References kBold, kReset, and kUnderline.

Referenced by Shell::PrintKeyBindings(), and Console::PrintKeyBindings().

116 {
117  out << endl;
118  out << " " << kUnderline << "Key bindings:" << endl << endl;;
119  out << " Default key-bindings are identical with your bash." << endl;
120  out << endl;
121  out << kBold << " Page-up " << kReset << "Search backward in history" << endl;
122  out << kBold << " Page-dn " << kReset << "Search forward in history" << endl;
123  out << kBold << " Ctrl-left " << kReset << "One word backward" << endl;
124  out << kBold << " Ctrl-right " << kReset << "One word forward" << endl;
125  out << kBold << " Home " << kReset << "Beginning of line" << endl;
126  out << kBold << " End " << kReset << "End of line" << endl;
127  out << kBold << " Ctrl-d " << kReset << "Quit" << endl;
128  out << kBold << " Ctrl-y " << kReset << "Delete line" << endl;
129  out << kBold << " Alt-end/Ctrl-k " << kReset << "Delete until the end of the line" << endl;
130  out << endl;
131 
132  return true;
133 }
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: