52 Shell(
const char *prgname);
66 void Run(
const char * =
"")
int fIsVisible
Space between the bottom of the screen and the output panel.
static int rl_scroll_top(int cnt, int key)
PANEL * fPanelOut
Pointer to the panel for the frame around the output.
WindowLog win
pointer to our glocal object to get the static member functions into scope
A C++ ostream to an ncurses window supporting attributes and colors.
static int rl_top_inc(int cnt, int key)
static int rl_scroll_bot(int cnt, int key)
static void HandleResizeImp(int dummy)
Signal handler for SIGWINCH, calls HandleResize.
void CreateWindows(WINDOW *w[3], int all=true)
Helper for the constructor and window resizing to create the windows and panels.
~Shell()
Ends the ncurses environment by calling endwin().
bool PrintCommands(std::ostream &out)
virtual void Run(const char *prompt=0)
WindowLog & GetStreamIn()
int fLine
Flag whether the output panel is visible or not (for toggle operations)
PANEL * fPanelFrame
Pointer to the panel for the input stream.
bool PrintBootMsg(std::ostream &out, const std::string &name, bool interactive=true)
static int rl_top_resize(int cnt, int key)
static int rl_proc_F1(int cnt, int key)
Key binding for F1. Toggles upper panel by calling ShowHide(-1)
void Run(const char *="")
bool Process(const std::string &str)
WindowLog & GetStreamOut()
const WindowLog & GetStreamOut() const
int fPanelHeight
Pointer to the panel for the output stream.
std::string GetName() const
void Shutdown(const char *)
Shell(const char *prgname)
void HandleResize()
Non static member function called by HandleResize.
static int rl_top_dec(int cnt, int key)
const WindowLog & GetStreamIn() const
Implementation of a console based user shell with an input and output window.
Helper to redirect readline's in- and output to an ncurses window.