Ignore:
Timestamp:
04/07/11 15:41:50 (12 years ago)
Author:
tbretz
Message:
Use ReadlineColor for unified look and feel.
File:
1 edited

Legend:

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

    r10183 r10305  
    33
    44#include "ReadlineWindow.h"
     5#include "ReadlineColor.h"
    56#include "WindowLog.h"
    67
     
    4243    void HandleResize();
    4344
    44     // Wrapper function to redirect the output of some readline function
    45     // into our own stream
    46     bool RedirectionWrapper(bool (*function)(), const char *title);
    47     bool PrintAttributes();  /// Show the available attributes
    48 
    4945    /// Helper for the constructor and window resizing to create the windows and panels
    5046    void CreateWindows(WINDOW *w[3], int all=true);
     
    6157    void Refresh() { ShowHide(-2); }
    6258
    63     bool PrintGeneralHelp();
    64     bool PrintCommands();
    65     bool PrintKeyBindings();
     59    bool PrintGeneralHelp() { return ReadlineColor::PrintGeneralHelp(win, GetName()); }
     60    bool PrintCommands()    { return ReadlineColor::PrintCommands(win);    }
     61    bool PrintKeyBindings() { return ReadlineColor::PrintKeyBindings(win); }
    6662
    6763    bool Process(const std::string &str);
     64
     65    void Run(const char * = "")
     66    {
     67        ReadlineColor::PrintBootMsg(win, GetName());
     68        Readline::Run();
     69    }
    6870
    6971    WindowLog &GetStreamOut() { return wout; }
Note: See TracChangeset for help on using the changeset viewer.