Changeset 10312


Ignore:
Timestamp:
Apr 7, 2011, 4:36:33 PM (10 years ago)
Author:
tbretz
Message:
Some updates to the output of help messages.
Location:
trunk/FACT++/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/LocalControl.h

    r10310 r10312  
    5252    { }
    5353
    54     //bool PrintGeneralHelp()
    55     //bool PrintKeyBindings()
     54    bool PrintGeneralHelp()
     55    {
     56        T::PrintGeneralHelp();
     57        lout << " " << kUnderline << "Specific commands:" << endl;
     58        lout << kBold << "   st,states    " << kReset << "Display a list of the available states with description." << endl;
     59        lout << endl;
     60        return true;
     61    }
    5662    bool PrintCommands()
    5763    {
     
    6571    bool Process(const std::string &str)
    6672    {
     73        if (str=="states" || str=="st")
     74        {
     75            if (fStateMachine)
     76                fStateMachine->PrintListOfStates(lout);
     77            return true;
     78        }
     79
    6780        if (T::Process(str))
    6881            return true;
  • trunk/FACT++/src/RemoteControl.h

    r10310 r10312  
    152152        T::PrintGeneralHelp();
    153153        lout << " " << kUnderline << "Specific commands:" << endl;
    154         lout << kBold << "  s,servers     " << kReset << "List all servers which are connected." << endl;
    155         lout << kBold << "  svc,services " << kReset << "List all services in the network." << endl;
     154        lout << kBold << "   s,servers    " << kReset << "List all servers which are connected." << endl;
     155        lout << kBold << "   svc,services " << kReset << "List all services in the network." << endl;
    156156        lout << endl;
    157157        return true;
  • trunk/FACT++/src/Shell.cc

    r10305 r10312  
    423423}
    424424
     425bool Shell::PrintKeyBindings()
     426{
     427    ReadlineColor::PrintKeyBindings(win);
     428    win << " " << kUnderline << "Special key bindings:" << endl << endl;;
     429    win << kBold << "   F1              " << kReset << "Toggle visibility of upper panel" << endl;
     430    win << endl;
     431    return true;
     432}
     433
     434bool Shell::PrintGeneralHelp()
     435{
     436    ReadlineColor::PrintGeneralHelp(win, GetName());
     437    win << kBold << "   hide         " << kReset << "Hide upper panel." << endl;
     438    win << kBold << "   show         " << kReset << "Show upper panel." << endl;
     439    win << kBold << "   height <h>   " << kReset << "Set height of upper panel to h." << endl;
     440    win << endl;
     441    return true;
     442}
     443
    425444// --------------------------------------------------------------------------
    426445//
  • trunk/FACT++/src/Shell.h

    r10305 r10312  
    5757    void Refresh() { ShowHide(-2); }
    5858
    59     bool PrintGeneralHelp() { return ReadlineColor::PrintGeneralHelp(win, GetName()); }
    60     bool PrintCommands()    { return ReadlineColor::PrintCommands(win);    }
    61     bool PrintKeyBindings() { return ReadlineColor::PrintKeyBindings(win); }
     59    bool PrintCommands() { return ReadlineColor::PrintCommands(win); }
     60    bool PrintGeneralHelp();
     61    bool PrintKeyBindings();
    6262
    6363    bool Process(const std::string &str);
Note: See TracChangeset for help on using the changeset viewer.